Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Golf: Count unique words

by Anonymous Monk
on Dec 07, 2004 at 13:10 UTC ( [id://412897]=note: print w/replies, xml ) Need Help??


in reply to Re: Golf: Count unique words
in thread Golf: Count unique words

#!/usr/bin/perl -0nla $w{$_}++for@F;print"$_ ($w{$_}) "for keys%w;print~~@F small correction :)

Replies are listed 'Best First'.
Re^3: Golf: Count unique words
by Anonymous Monk on Dec 07, 2004 at 13:13 UTC
    #!/usr/bin/perl -0na
    $w{$_}++for@F;print"$_ ($w{$_})
    "for keys%w;print~~@F

    there is literal \n at the end of second line

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found