Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960579]
[choroba]: And regarding SQL, I'm usually generating SQL directly from queries supplied by the user, so I don't see how DBIx::Class can help me.
[1nickt]: Yes, in my (very) limited experience with it, it seems better suited to API building

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-11-24 14:05 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (349 votes). Check out past polls.