Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: $1 into an array

by Wonko the sane (Deacon)
on Mar 25, 2004 at 19:32 UTC ( #339853=note: print w/ replies, xml ) Need Help??


in reply to $1 into an array

Hello

Not running with warnings or strict are ya!
You are assigning your $1 into the HASH slotarray, but then trying to print out the contents of the ARRAY slotarray.

# change this line, which assigns into a hash... my $slotarray{$counter} = "$1"; # to something like this, which assigns into an array. push( @slotarray, $1 );

Wonko


Comment on Re: $1 into an array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (18)
As of 2015-07-07 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls