GeekyBrackets has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use v5.14; use Compress::Zlib; my $filename= "example.gz"; my $fh= gzopen($filename, "rb"); my $line=0; my $counter=1; my @array=(); [b]while($line = <$fh>)[/b] { @array= split (' ', $line); my $num = scalar(@array); print "$array[15] $array[1]\n" if ($array[15] eq "word"); $counter++; } close $fh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not a GLOB reference
by choroba (Cardinal) on Dec 17, 2014 at 11:33 UTC | |
|
Re: Not a GLOB reference
by Anonymous Monk on Dec 17, 2014 at 11:31 UTC |