Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Extract info from a list

by tos (Deacon)
on Jul 16, 2003 at 09:24 UTC ( #274738=note: print w/replies, xml ) Need Help??


in reply to Re: Extract info from a list
in thread Extract info from a list

a little typo in your fine solution

$_ and $count{$_} have to be swapped

printf "%s = %d\n", $_, $count{$_} for keys %count;
greetings, tos

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (None)
    As of 2021-10-16 05:12 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My first memorable Perl project was:







      Results (69 votes). Check out past polls.

      Notices?