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)
In reply to Re^5: Question using system.
by ikegami
in thread Question using system.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |