![]() |
|
P is for Practical | |
PerlMonks |
Re: Using wildcards to open files.by aitap (Curate) |
on Oct 25, 2012 at 16:00 UTC ( #1000894=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|