Click here to get back home

uninitialized value in multidimensional array

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
uninitialized value in multidimensional array dave 04-17-2008
Posted by dave on April 17, 2008, 12:06 pm
Please log in for more thread options
I've the following perl :

my @Table = ([],[],[],[]);

push ( @Table, 'text1', 'test2', 'text3','text4');

foreach my $next (@Table))
{





Posted by RedGrittyBrick on April 17, 2008, 12:15 pm
Please log in for more thread options
dave wrote:
> I've the following perl :
>
> my @Table = ([],[],[],[]);
>
> push ( @Table, 'text1', 'test2', 'text3','text4');
>
> foreach my $next (@Table))
> {
>

Nuke it from orbit.

--
RGB

Posted by Jim Gibson on April 17, 2008, 3:35 pm
Please log in for more thread options
In article

> I've the following perl :
>
> my @Table = ([],[],[],[]);
>
> push ( @Table, 'text1', 'test2', 'text3','text4');
>
> foreach my $next (@Table))
> {

That is not a valid Perl program, so I can't tell what it is you are
trying to do, or under what circumstances you are getting the error
message in your subject line.

I suggest you use Data::Dumper to see what you have in @Table:

use Data::Dumper;
print Dumper(\@Table);

It might be illuminating.

Please read the guidelines for this group and try to adhere to them.
Thanks.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
http://www.usenet.com

Similar ThreadsPosted
multidimensional Array August 9, 2007, 11:51 am
FAQ 4.65 How can I store a multidimensional array in a DBM file? May 12, 2005, 11:03 am
FAQ: How can I store a multidimensional array in a DBM file? October 10, 2004, 5:10 pm
FAQ 4.65 How can I store a multidimensional array in a DBM file? February 13, 2005, 12:03 am
FAQ 4.65 How can I store a multidimensional array in a DBM file? July 28, 2005, 10:03 am
FAQ 4.65 How can I store a multidimensional array in a DBM file? September 17, 2005, 10:03 pm
FAQ 4.65 How can I store a multidimensional array in a DBM file? June 6, 2006, 9:03 pm
FAQ 4.65 How can I store a multidimensional array in a DBM file? July 30, 2006, 9:03 am
FAQ 4.65 How can I store a multidimensional array in a DBM file? October 17, 2006, 3:03 pm
FAQ 4.65 How can I store a multidimensional array in a DBM file? January 2, 2007, 9:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap