[Bioperl-l] What happens to STDOUT?

Marc Logghe MarcL at DEVGEN.com
Fri Mar 31 14:02:41 UTC 2006


> I suspect you mean:
> my $seqin = Bio::SeqIO->new(-format => $informat, -fh => \*ARGV);
Yeah, corrected myself a split minute ago. Sorry for that.

> 
> But does this work? perldoc perlvar says it "may not":
> Note that currently ARGV only has its magical effect within 
> the <> operator; elsewhere it is just a plain filehandle 
> corresponding to the last file opened by <>. In particular, 
> passing \*ARGV as a parameter to a function that expects a 
> filehandle may not cause your function to automatically read 
> the contents of all the files in @ARGV.
Well, I can only say that up to now it used to work.

> 
> > In that way, you have the same magic as the diamond/pulp fiction 
> > operator <>
> Pulp fiction operator? Never heard it called that before.
If I recall well, it must have been Damian Conway who used that.

Cheers,
ML




More information about the Bioperl-l mailing list