Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Some Weird Probelm

by dvergin (Monsignor)
on Dec 11, 2001 at 11:37 UTC ( [id://130884]=note: print w/replies, xml ) Need Help??


in reply to Some Weird Probelm

dws nailed it (as usual).

As a side note, your comment:    # Create Associative Arrays does not correspond to what you have in the code. It seems clear from what you are doing that @alpha and @number are both just arrays and not associative arrays (i.e. hashes).

An array is a simple series of values (which is what you have) which retain their order and are accessed by an index value.

An associative array or hash is a group of pairs of values which are not guaranteed to be in any particular order; the first value in each pair is used as a key to the other which is used as the value associated with that key.

The comment line is not essential to the function of your code but this seemed worth mentioning so that you get used to the correct use of the terminology.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found