in reply to Re: Modules as executable scripts?
in thread Modules as executable scripts?
"This flexibility is a common feature in Python ..."
And who needs it? Here's what you cannot do in Python that you can in Perl and Ruby: run Python as an ad hoc filter. So there is that. If you are trying to say Python is better than Perl then you just failed.
You can't do that in Python! But you can run a .pm file as a script if you are dumb enough to think that's a good thing.perl -pi.bak -e's/foo/bar/g' python.txt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Modules as executable scripts?
by gerases (Sexton) on Mar 17, 2017 at 01:57 UTC |
In Section
Seekers of Perl Wisdom