Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Counter Intuitive Code

by RonW (Parson)
on Mar 31, 2019 at 17:31 UTC ( #1231927=note: print w/replies, xml ) Need Help??


in reply to Re: Counter Intuitive Code
in thread Counter Intuitive Code

eval join'|', @ARGV

While that works, it is dangerous to directly eval user input. eval has the full power of the perl compiler behind it.

Of course, in this use case, the user is also using the Perl debugger, which is equally dangerous.

Always remember, tools of great power come with great responsibility.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-01-25 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?