in reply to Re^4: Question using system.
in thread Question using system.
It wasn't required for that particular command, but it avoids the need for shell quoting.
# XXX Buggy and susceptible to injection attacks. open(my $cmd, "getfilesdata $file |") # Fixed open(my $cmd, '-|', 'getfilesdata', $file)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Question using system.
by oko1 (Deacon) on Jul 10, 2008 at 21:52 UTC | |
by ikegami (Patriarch) on Jul 10, 2008 at 21:55 UTC | |
by oko1 (Deacon) on Jul 10, 2008 at 22:10 UTC | |
by ikegami (Patriarch) on Jul 10, 2008 at 22:18 UTC |