in reply to Re: quoting issue with system command
in thread quoting issue with system command

-o mean print results to an output file. In this case that is $alignment.
  • Comment on Re^2: quoting issue with system command

Replies are listed 'Best First'.
Re^3: quoting issue with system command
by almut (Canon) on May 12, 2009 at 23:15 UTC

    but $alignment is a Perl file handle (that you explicitly opened), and you can't pass Perl file handles to other programs via system() arguments...  Maybe you just want to pass the respective output filename instead (the one you used in the open())?

    ... my $alignment = "$maid_dir\\${maid}_aln.out"; my $command = qq(c:\\blast\\bin\\blastall -p blastn -d "$hu_seq $hd_se +q" -i $contig -o $alignment);