Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: A Tribute To The Monks Of Wisdom

by blazar (Canon)
on Nov 21, 2008 at 12:17 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2016-10-26 06:44 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (336 votes). Check out past polls.