Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: (Golf) LED Sign

by petral (Curate)
on Jun 10, 2001 at 05:49 UTC ( #87252=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub led{
      ($b=pop)=~y/0-9.\-\0-~/\0-\cK/d;
    ...
    
    
    print led @ARGV ? shift : "19QQ86\t-- \@0134.72x-0(?)";
    
  2. or download this
    ($b=pop)=~y/-0-9./\0-\cK/;join$/,
    map{join$",('X   ',$"x4,'   X','X  X','X'x4)[(/./g)[unpack'C*',$b]]}
    142443444441,(132223002331)x2,432444442441,(132022232321)x2,1 .424x4
    ,""
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87252]
help
Chatterbox?
[1nickt]: But should handle month as number or word
[TCLion]: I am breaking down the line and putting the date in the correct order during output
[TCLion]: at least that's the plan
[1nickt]: Corion this looks good, from the pod: "there are 9000+ variations that are detected correctly in the test files (see t/data/* for most of them). If you can think of any that I do not cover, please let me know."
[TCLion]: some moron put the date like this : Mon Feb 20 09:31:30 2017
[Corion]: 1nickt: Yes, the module sounds promising indeed
[1nickt]: "putting the date in correct order" how?
[Corion]: TCLion: Whee ;)
[TCLion]: need to put like this : 2017-02-20 09:30:53
[1nickt]: That's why I asked if you are using DateTime. It has a large number of supporting modules (the author likes the term 'eco-system') so if you are already creating a DateTime obj from your dates, this module would read in the mnoron-formatted 1s seamlessly

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2017-03-23 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (288 votes). Check out past polls.