Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(tye)Re: (Golf) Let's go bowling

by tye (Sage)
on Aug 11, 2001 at 12:00 UTC ( #104124=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub bowl {
        $_=pop;
        s#(\d)([\d/](?=(.)))|X(?=(..))|.#$3?"X$3":$4?"X$4":$1.$2#ge;
        s#\d/#/#g;
        map{(y./X.aa.)x hex}split//
    }
    
  2. or download this
    sub bowl {
        $_=pop;
        s#(\d)(\d|/(?=(.)))|X(?=(..))|.#$3.$4?"X$3$4":$1.$2#ge;
        s#\d/#/#g;
        map{(y./X.a.)x hex}split//
    }
    
  3. or download this
    sub bowl {
        $_=pop;
        s#(\d)(\d(?=.)|/(?=(.)))|X(?=(..))|.#$3.$4?"X$3$4":$1.$2#ge;
        s#\d/#/#g;
        map{(y./X.a.)x hex}split//
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://104124]
help
Chatterbox?
[thezip]: i don't get the command line "back" until I close VIM. No what I want to happen...
[thezip]: I currently don't have access to CYGWIN, else I'd just do a tail -f on the logfile.
[Corion]: thezip: If you want to open vim and can live with opening a second console window, use start "The results" vim.exe c:\path\to\logfile .log
[thezip]: Ooops... I lied. I guess Cygwin is back. I'll just do a tail -f instead. Better. Sorry for the noise.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-03-27 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.