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

Re^3: YAPC::EU::2013 reg.ru Go Perl golf contest

by Grimy (Pilgrim)
on Aug 22, 2013 at 11:44 UTC ( [id://1050514]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl -ln0
    $:='((?=W|.{9}W)|(?<=W.)|(?<=W.{10}))';{1while s/w$:/W/s;/ $:/gs>//gs&
    +&print+("@-E-1"+1)=~y/./ /r;y/W/x/;s/w/W/&&redo}
    
  2. or download this
    #!perl -ln0
    $,='((?=.(.{9})?g)|g(.{9})?\K)'until!s!$,w!g!s;$,=/$, /gs>//gs&&!map!y
    +!.! !>print,"@-e-1"+1;y&g& &&&redo
    
  3. or download this
    #!perl -ln0
    map{1while$,=s=$,w=g=s?'(g|(?=.g|..{9}g)|g.{9})\K':/g/>/$, /s&&map{y!.
    +! !;print;redo}/x/+"@+E-1"or y&g&b&}"$`x$'"while/ /g
    

Log In?
Username:
Password:

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

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

    No recent polls found