Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: (Golf) Ascii table

by blokhead (Monsignor)
on Aug 16, 2003 at 04:48 UTC ( [id://284310]=note: print w/replies, xml ) Need Help??


in reply to (Golf) Ascii table

63, plus one for the -l, gives me 64:
perl -le'print" ",$,=$",@_=(0..9,A..F);print$_."0:",map chr$a++,@_ for@_'

Update: Welp, it's pretty trivial to trim a character off that, making it 63:
perl -le'print$,=$",$,,@_=(0..9,A..F);print$_."0:",map chr$a++,@_ for@_'

blokhead

Replies are listed 'Best First'.
Re: Re: (Golf) Ascii table
by antirice (Priest) on Aug 16, 2003 at 05:12 UTC

    Very nice. :)

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-28 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found