Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: pondering array population

by DamnDirtyApe (Curate)
on Nov 21, 2002 at 20:51 UTC ( [id://214919]=note: print w/replies, xml ) Need Help??


in reply to pondering array population

Perhaps try it with a hash, like this: (untested)

sub f { my %numbers ; foreach ( $q->param ) { /^([0-9]+)/ && $numbers{$1}++ ; } return keys %numbers; }

_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found