Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Using wildcards to open files.

by aitap (Deacon)
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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2016-10-24 16:24 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.