my $file="camel.out"; system("cat camel.txt >$file");
my @output=split `cat camel.txt`; open FILE ">camel.out" or die "My camel is sick: $!\n"; print FILE for @output; # This code is untested, so beware
CU
Robartes-
In reply to Re: system and STDOUT
by robartes
in thread system and STDOUT
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |