uninitialized value in multidimensional array

I've the following perl :

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

push ( [at] Table, 'text1', 'test2', 'text3','text4');

foreach my $next ( [at] Table))
{
dave [ Do, 17 April 2008 18:06 ] [ ID #1944860 ]

Re: uninitialized value in multidimensional array

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

Nuke it from orbit.

--
RGB
RedGrittyBrick [ Do, 17 April 2008 18:15 ] [ ID #1944861 ]

Re: uninitialized value in multidimensional array

dave <davewu922 [at] gmail.com> writes:

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

And your question is... ?

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Sherm Pendley [ Do, 17 April 2008 19:43 ] [ ID #1944867 ]

Re: uninitialized value in multidimensional array

In article
<9426ddef-01bb-43bb-a62f-db50560fc5fb [at] f63g2000hsf.googlegroups.com>,
dave <davewu922 [at] gmail.com> wrote:

> I've the following perl :
>
> my [at] Table = ([],[],[],[]);
>
> push ( [at] Table, 'text1', 'test2', 'text3','text4');
>
> foreach my $next ( [at] 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 [at] Table:

use Data::Dumper;
print Dumper(\ [at] 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
Jim Gibson [ Do, 17 April 2008 21:35 ] [ ID #1944873 ]
Perl » comp.lang.perl.misc » uninitialized value in multidimensional array

Vorheriges Thema: FAQ 9.25 How do I fetch/put an FTP file?
Nächstes Thema: FAQ 9.19 How do I return the user's mail address?