in reply to Re^2: System call doesn't recognise '>'
in thread System call doesn't recognise '>'
system ('@array > $outfile');
That line doesn't do what you think it does. Single quotes don't interpolate. You want to use double quotes and you want to check the return code of system():
system( "@array > $outfile" ) == 0 or die "Couldn't launch [@array > $outfile]: $!/$?";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: System call doesn't recognise '>'
by Lauras (Initiate) on Dec 11, 2008 at 09:10 UTC | |
by Corion (Patriarch) on Dec 11, 2008 at 09:15 UTC | |
by Lauras (Initiate) on Dec 11, 2008 at 09:25 UTC |