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

Re: System command with quotes and variables

by varian (Chaplain)
on Apr 16, 2007 at 06:36 UTC ( [id://610272]=note: print w/replies, xml ) Need Help??


in reply to System command with quotes and variables

You can avoid impact from quotes/escapes, if you provide the system function a list instead of a scalar it will not interpolate those args.

From the perl system function documentation:
If there is more than one argument in LIST, or if LIST is an array with more than one value, starts the program given by the first element of the list with arguments given by the rest of the list. If there is only one scalar argument, the argument is checked for shell metacharacters

Log In?
Username:
Password:

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

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

    No recent polls found