Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Shell characters coming back to bite me.

by moritz (Cardinal)
on Mar 20, 2012 at 14:13 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://960579]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found