Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Why does this happen?by greenFox (Vicar) |
on Apr 04, 2001 at 07:12 UTC ( [id://69537]=note: print w/replies, xml ) | Need Help?? |
Short answer is, use a hash for that :) longer answer is that the array doesn't know how to iterate over 0..2 it just wants to return the specified value which it notices isn't numeric, to do what you were trying to do you would have to use a loop... see the short answer :) --
In Section
Seekers of Perl Wisdom
|
|