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

Re: Using wildcards to open files.

by aitap (Chaplain)
on Oct 25, 2012 at 16:00 UTC ( #1000894=note: print w/ replies, xml ) Need Help??


in reply to Using wildcards to open files.

You shouln't use one-argument form of system in such unsafe way (imagine somebody running in that directory: touch file \;\ -rf\ \* and thus creating a file named file; rm -rf *). Use quotemeta to quote special characters or use IPC::Run and pass arguments and file redirections as list elements.

Sorry if my advice was wrong.


Comment on Re: Using wildcards to open files.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-04-25 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (586 votes), past polls