LPM: 2d array ? for perl

Rich Bowen rbowen at rcbowen.com
Thu Dec 28 13:43:36 CST 2000


Ronald Edward Petty wrote:
> 
> > while(@auth)
> > {
> >         print "@datafile[0]";
> >         splice(@auth, 0, 1);
> >         splice(@datafile, 0, 1);
> > }
> 
> @auth will have the same number of elements as @datafile since
> @auth is an array of the first | delimited fields from @datafile?  Make
> more since?

Well, yes, I understand that. However, I'm not sure what you're trying
to do with those splice lines, and I have no idea what you are trying to
display with that print statement. You are aware, I hope, that you're
printing the same thing each iteration through the while() loop?
$datafile[0] is going to be the same thing no matter when or where you
print it.

-- 
Rich Bowen --  Director of Web Application Development
http://www.cre8tivegroup.com/  --  rich at cre8tivegroup.com
Have trouble remembering things?   http://www.idforgetmyhead.com/



More information about the Lexington-pm mailing list