Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: PGA Golf, Round 1

by petral (Curate)
on May 25, 2001 at 18:08 UTC ( #83312=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    # hole 1: 16
    perl -le 'sub h1 {(pop=~/\w+/g)[4]}'      -e'print h1"abc   ,., de f g
    + hi jk"'
    perl -le 'sub h6 {grep{s/.//}sort map{/[aeiou]/;$&.$_}@_}' \
                                -e'$,=$";print h6 qw(book eel hi huge i pe
    +a wrap)'
  2. or download this
    perl -le'sub x {$_[-1]<$_[0]?pop:shift;$#_?&x:@_}' -e'print x(-3,-5,-2

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83312]
[atcroft]: PriNet: Those code bits worked for me, with test hashes, but I didn't test it with more than a few simple test cases. *shrug* Had hoped it would help, at least.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-06-28 03:08 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (619 votes). Check out past polls.