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 |
In Section
Seekers of Perl Wisdom