open RES, "-|", "ls -lde $_";
You have to pass the arguments separately:
open RES, '-|', 'ls', '-lde', $_ or die "Cannot launch ls: $!";
See also: open, perlopentut
In reply to Re: Shell characters coming back to bite me.
by moritz
in thread Shell characters coming back to bite me.
by mull
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |