Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

When One Golfer Speculates On What Another Is Doing...

by eyepopslikeamosquito (Chancellor)
on Aug 01, 2009 at 03:07 UTC ( #785052=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <?fscanf(STDIN,'%d:%d',$h,$m);$s=array_combine(str_split('0b1a29384756
    +'),array_fill(0,12,'o'));$s[$h=dechex($h>11?$h-12:$h)]='h';$s[$m=dech
    +ex($m>59?0:$m/5)]=$h==$m?'x':'m';vprintf("%9s
    %5s%8s
    ...
    %5s%8s
    %9s",$s)
    ?>
    
  2. or download this
    <>=~/:/;@y=(o)x12;$y[$`%12]=h;$y[$'/5]=~y/oh/mx/;
    printf'%9s
    ...
    
    %5s%8s
    %9s',map{$y[$_],$y[11-$_]}0..5
    
  3. or download this
    # test.pl
    use strict;
    ...
        $got eq $r->[1] or die "expected:\n$r->[1]got:\n$got";
    }
    print "successful\n";
    
  4. or download this
    perl test.pl mysolution.pl
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://785052]
Approved by planetscape
Front-paged by planetscape
help
Chatterbox?
[LanX]: such much?
[LanX]: We are speaking nothing but english now...
erix never really understood the need for rhyming slang
[erix]: it seems so far-fateched and illogical
[erix]: islanders a deviant bunch

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



    Results (305 votes). Check out past polls.