in reply to Non-shell-invoking system/exec and qx//
Note that a shell could still get invoked if @_ == 1 and the first element contains shell metacharacters.sub backticks { open(my $pipe, '-|', @_) or return; local $/ = wantarray ? $/ : undef; <$pipe> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Non-shell-invoking system/exec and qx//
by ikegami (Patriarch) on Jun 18, 2008 at 14:38 UTC | |
|
Re^2: Non-shell-invoking system/exec and qx//
by ikegami (Patriarch) on Jul 17, 2008 at 19:28 UTC |