XP is just a number | |
PerlMonks |
Re: foreach on arrayby shenme (Priest) |
on Oct 13, 2005 at 07:46 UTC ( [id://499804]=note: print w/replies, xml ) | Need Help?? |
Try it without the '[' and ']'? push @inpfile, split /\n/; The '[' and ']' surrounding the split put the result into an "anonymous array", then you push the reference to the anonymous array onto @inpfile. Later when you print one of those values you see 'ARRAY(...)', which it is, an array reference.
Were you perhaps thinking you wanted
In Section
Seekers of Perl Wisdom
|
|