Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: On being 'critical'

by bart (Canon)
on Dec 15, 2006 at 18:51 UTC ( [id://590073]=note: print w/replies, xml ) Need Help??


in reply to Re^3: On being 'critical'
in thread On being 'critical'

Did you know the P5P refuse to fix the magical open for <>, it uses 2 argument open internally,
I haven't made up my mind on this yet, but what do you see wrong with that?
Like diotalevi always says: it is possible, even easy, to construct files with weird filenames on Unix. Unlike on Windows, special characters are not disallowed, only inconvenient. A user can use '|rm -rf /' as a file name, and then a simple invocation of
perl -ne 1 *
is enough to delete all the files you have write access to.
'Fixing' it, to use the 3-arg variant would entail throwing away a bunch of useful behaviours that the user can invoke from the command line.
Indeed, that is their excuse.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found