|
|
|
|
|
by ben509
2308 days ago
|
|
Perl's big win for one-liners is braces syntax. Interestingly, there are already projects to add braces syntax[1]. Two of the three Perl features are also Python features, namely -m to run a module and -c to run code on the command line. Regarding Perl being a better shell, there are modules like `doit` and `invoke` that make Python far better than perl for managing jobs, precisely because they make forking off jobs super easy. But now that you mention it... I want to write a module to make python one-liners easy. [1]: https://pypi.org/project/brackets/ |
|