Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: defined array questionby htoug (Deacon) |
on Aug 30, 2002 at 11:43 UTC ( [id://194073]=note: print w/replies, xml ) | Need Help?? |
I don't get the meaning of this:
if( defined @user_geg[0..$#user_geg] ) { }
Now lets see what it means.
What you probably mean is "if there are any elements in the array 'user_egg' then ..." which can be expressed as
Your original question as to why you have to add the -1 is probably answered by the meaninglessness of defined @user_geg.
In Section
Seekers of Perl Wisdom
|
|