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

Re^3: Stop Using Perl pt. 2

by Corion (Pope)
on Dec 29, 2015 at 15:21 UTC ( #1151371=note: print w/replies, xml ) Need Help??

in reply to Re^2: Stop Using Perl pt. 2
in thread Stop Using Perl pt. 2

Even if you use the relatively safe three-argument version of open, you need to sanitize the user input. Ideally, you would never use user input to open a file or pass user input to an operating system function, which is where open basically ends up at. If you open files from user input and don't use three-argument open, you get what you deserve. This is documented in I/O Operators, but maybe not in such direct words.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2019-12-14 03:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found