Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Shell characters coming back to bite me.

by moritz (Cardinal)
on Mar 20, 2012 at 14:13 UTC ( #960579=note: print w/ replies, xml ) Need Help??


in reply to Shell characters coming back to bite me.

open RES, "-|", "ls -lde $_";

You have to pass the arguments separately:

open RES, '-|', 'ls', '-lde', $_ or die "Cannot launch ls: $!";

See also: open, perlopentut


Comment on Re: Shell characters coming back to bite me.
Select or Download Code
Re^2: Shell characters coming back to bite me.
by mull (Monk) on Mar 20, 2012 at 14:56 UTC
    Ok thanks a lot, that was exactly what I needed!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960579]
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 2014-10-23 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls