Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Competition fuels obsession over Perl

by graff (Chancellor)
on Feb 19, 2004 at 06:05 UTC ( #330154=note: print w/ replies, xml ) Need Help??


in reply to Competition fuels obsession over Perl

Given a sentence, print out each word and the number of vowels it contains. Print them out in order by number of vowels and them alphabetical if same number of vowels.
Hmmm. Didn't we just see an SoPW node about that sort of problem a little while back? ;^)


Comment on Re: Competition fuels obsession over Perl
Re: Re: Competition fuels obsession over Perl
by jonadab (Parson) on Feb 19, 2004 at 19:35 UTC
    Didn't we just see an SoPW node about that sort of problem a little while back?

    Probably. There was probably also a JAPH posted based on this idea in the Obfuscated Code section recently. Either that or somebody was playing golf with it, trying to get it under 60 characters for a signature without messing up under scrictures and warnings.

    In other words, it's a textbook example of the sort of thing that's cosmically easy to do in Perl, because it's exactly the sort of thing Perl was designed to do easily.


    ;$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$;[-1]->();print

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-09-22 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls