If your program output a file, why use a backtick? simply use a open function in Perl, like this:
Please, check perldoc perlopentutuse warnings; use strict; my $output_file="output.bam"; open my $fh,'>',$output_file or die "can't open $output_file:$!"; print $fh " ... hello world into my file..."; close $fh or die "can close file: $!";
In reply to Re: Running an external command
by 2teez
in thread Running an external command
by Eldan Aranye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |