You could use filehandle to save the output outcome.

use strict;
open OUT, ">outfile.txt"; ## at the beggining

and for instance:
print OUT $seq->id(),"\n";

Thus, outfile.txt contains $seq->id(),

close OUT;  ####at the end.

2010/10/5 Jeff Peng <pen...@nsbeta.info>

> > Hello,
> >
> > Can anyone please tell me how to save output (what we get after running a
> > perl script) as an external file?
> >
>
> run it under a unix shell?
> try:
>
> perl a.pl > a.txt 2>&1
>
> save all the output of a.pl to a.txt.
>
> 2>&1 means to capture the script's error output also.
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>


-- 
Jordi

Reply via email to