Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Why does this happen?

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 :)

--
my $chainsaw = 'Perl';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69537]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found