Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: PGA Golf, Round 1

by tadman (Prior)
on May 25, 2001 at 16:11 UTC ( [id://83272]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f{
    (pop=~/w+/g)[4]
    }
    
  2. or download this
    perl -e# -e# -e# -e# -egoto+TPC
  3. or download this
    sub f{
    $p=$_=pop;1while(!/^($p){2,}$/&&$p=~s/.$//);$p
    }
    
  4. or download this
    sub f{
    $p=$_=pop;1while(!/^(\Q$p\E){2,}$/&&$p=~s/.$//s);$p
    }
    
  5. or download this
    sub f{
    map{chr hex$_}pop=~/../g
    }
    
  6. or download this
    sub f{
    $x=pop;map{$_>$x?$x=$_:0}@_;$x
    }
    
  7. or download this
    sub f{
    grep{s/.//}sort map{/[aeiou]/;"$&$_"}@_
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found