Zentara wrote:
>
> Hi,
Hello,
> I'm looking at a script that takes a file on STDIN.
perldoc -q "How can I read in an entire file all at once"
Found in /usr/lib/perl5/5.6.0/pod/perlfaq5.pod
How can I read in an entire file all at once?
> #######################################
> #!/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.
Read the "I/O Operators" section in perlop
perldoc perlop
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]