Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: pondering array population

by joe++ (Friar)
on Nov 21, 2002 at 20:52 UTC ( [id://214920]=note: print w/replies, xml ) Need Help??


in reply to pondering array population

Hi elam,

I'm afraid your seond implicitly assigend $_ overwrites the first one. You could try this:

sub change_punch_process { my %numbers; foreach (my $par = $q->param ) { $numbers{$1}++ if /^([0-9]+)/; { } # now you can get all your numbers with keys %numbers

--
Cheers, Joe

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-25 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found