Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: A Tribute To The Monks Of Wisdom

by blazar (Canon)
on Nov 21, 2008 at 12:17 UTC ( [id://725109]=note: print w/replies, xml ) Need Help??


in reply to Re^2: A Tribute To The Monks Of Wisdom
in thread A Tribute To The Monks Of Wisdom

I personally believe that the "only" risk associated with it is that you can pass arbitrary code to be executed, so it all depends on whom do you plan to make your script available to and to security settings. Thus

perl -pe ''

can be considered as an equivalent to cat(1) (well, except for the bazillion cmd line switches, of course!) but if you do

perl -pe '' "rm -rfv $HOME |"

then you're on your own. However FWIW it just boils down to doing

rm -rfv $HOME

in the first place. You "just" have to make sure others are not allowed to do the same or similar things, if you use the diamond operator: of course the issue has nothing to do with Perl anymore, but with your system's administration instead.

--
If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found