Hi, You should think of a glob as an alias.
$input = *STDIN; $file = <$input>; print $file; All that does is alias $input to STDIN, and then read the contents of $input into $file. The main use of this is redirecting your output without having to write loads of extra code.... R At 13:19 16/10/2002 -0400, zentara wrote: >Hi, >I'm looking at a script that takes a file on STDIN. > >####################################### >#!/usr/bin/perl > >my $input = \*STDIN; >print "$input\n"; >###################################### > >If I run it "script < somefile" the result is >GLOB(0x123ab458) > >What can you do with that GLOB? >For instance to use the input file as a >string or array? >I've seen it used as input to new objects. > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]