Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: an easier way with grep, map, and/or sort?

by broquaint (Abbot)
on Jul 19, 2002 at 17:51 UTC ( #183336=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if(not defined $institution) {
        $institution_table{ unaffiliated }++;
    ...
        $institution_table{ $_ }++
            for grep { $institution eq $_ } ( $hospital1 $hospital2 );
    }
    
  2. or download this
    $institution_table{$_}->{"fortyfive_fifty"} ++ 
            if 45 > $age and $age <= 50;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2023-03-27 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?