Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Modules as executable scripts?

by Anonymous Monk
on Mar 16, 2017 at 17:18 UTC ( [id://1184908]=note: print w/replies, xml ) Need Help??


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.

perl -pi.bak -e's/foo/bar/g' python.txt
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.

Replies are listed 'Best First'.
Re^3: Modules as executable scripts?
by gerases (Sexton) on Mar 17, 2017 at 01:57 UTC
    I think it will work through a symlink. I.e., /bin/something -> path_to_pm

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184908]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2025-07-12 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.