Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: multidimensional dilemma

by Russ (Deacon)
on Jun 04, 2002 at 00:40 UTC ( #171368=note: print w/replies, xml ) Need Help??


in reply to multidimensional dilemma

Sounds like a job for grep (my favorite!):
%ResultsByCode = ( registered => scalar(grep {$_ == 1} @resultStatus), unregistered => scalar(grep {$_ == 2} @resultStatus), waiting => scalar(grep {$_ == 3} @resultStatus), )

Russ
Brainbench 'Most Valuable Professional' for Perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-05-16 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?