Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 perusing the Monastery: (6)
As of 2015-07-03 18:09 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 (55 votes), past polls