Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Splitting up quoted/escaped command line arguments

by Tommy (Chaplain)
on Feb 11, 2014 at 18:53 UTC ( #1074469=note: print w/ replies, xml ) Need Help??


in reply to Re: Splitting up quoted/escaped command line arguments
in thread Splitting up quoted/escaped command line arguments

Sorry for forgetting the \\ escape. The command will never have spaces in it--only the arguments.

I too took a look at the Argv module and tried it out. It doesn't satisfy the needs I have:

$ perl -MArgv -MData::Dumper -E 'say Data::Dumper::Dumper [ Argv->new( + "/usr/local/bin/ssh %s \"/opt/something/bin/somebinary || echo \"Cou +ld not execute somebinary.\"" )->argv ]' $VAR1 = [ '/usr/local/bin/ssh %s "/opt/something/bin/somebinary || ech +o "Could not execute somebinary."' ];

Tommy
A mistake can be valuable or costly, depending on how faithfully you pursue correction


Comment on Re^2: Splitting up quoted/escaped command line arguments
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-07-28 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls