Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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
Domain Nodelet?
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 browsing the Monastery: (4)
As of 2021-10-19 13:23 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (76 votes). Check out past polls.