http://www.perlmonks.org?node_id=960579


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!