cajun has asked for the wisdom of the Perl Monks concerning the following question:
I've done some more looking into this and discovered 'perldoc perllol'. Using the example from there, here's what I've done:
When I run this, I get lots of :#!/usr/bin/perl -w $datafile='/home/users/cajun/perl/wwwstats/wwwstats.data'; open(INFILE,"$datafile") || die "Cannot open $datafile :$!"; while(<INFILE>){ @tmp=split(0..7); push @AoA, [@tmp]; print $AoA[5][3]; } close INFILE;
Use of uninitialized value in print at ./r-wwwStats.pl line 13, <INFILE> line 1.
Use of uninitialized value in print at ./r-wwwStats.pl line 13, <INFILE> line 2.
Use of uninitialized value in print at ./r-wwwStats.pl line 13, <INFILE> line 3.
Use of uninitialized value in print at ./r-wwwStats.pl line 13, <INFILE> line 4.
So obviously, I'm still missing some piece of the puzzle somewhere. Pointers greatly appreciated !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array of arrays
by chromatic (Archbishop) on Jan 22, 2001 at 09:50 UTC | |
by cajun (Chaplain) on Jan 22, 2001 at 10:10 UTC | |
|
Re: Array of arrays
by Fastolfe (Vicar) on Jan 22, 2001 at 09:52 UTC | |
by cajun (Chaplain) on Jan 22, 2001 at 10:07 UTC | |
|
Re: Array of arrays
by chipmunk (Parson) on Jan 22, 2001 at 09:54 UTC | |
|
Re: Array of arrays
by jeroenes (Priest) on Jan 22, 2001 at 10:56 UTC | |
|
Re: Array of arrays
by hotyopa (Scribe) on Jan 22, 2001 at 09:49 UTC | |
|
Re: Array of arrays
by Beatnik (Parson) on Jan 22, 2001 at 11:40 UTC | |
|
Re: Array of arrays
by mwp (Hermit) on Jan 22, 2001 at 09:39 UTC | |
by Fastolfe (Vicar) on Jan 22, 2001 at 09:54 UTC | |
by arhuman (Vicar) on Jan 22, 2001 at 18:00 UTC | |
by mwp (Hermit) on Jan 22, 2001 at 18:19 UTC | |
by chipmunk (Parson) on Jan 22, 2001 at 20:00 UTC | |
by cajun (Chaplain) on Jan 22, 2001 at 09:54 UTC | |
|
Re: Array of arrays
by cajun (Chaplain) on Jan 22, 2001 at 09:57 UTC |