Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: outputting fun

by tye (Cardinal)
on Aug 29, 2000 at 20:43 UTC ( #30168=note: print w/ replies, xml ) Need Help??


in reply to outputting fun

#!/usr/bin/perl -l print reverse join"\n",reverse map{reverse sprintf "%-6.6s%7s",(reverse join"",@$_=reverse@$_),reverse join "",reverse@$_}reverse map{[reverse'A'..$_]}reverse'A'..'G'

I think I can eliminate one of those reverses, but I'm not sure which one. (:

        - tye (but my friends call me "Tye")


Comment on Re: outputting fun
Select or Download Code
RE: Re: outputting fun
by mdillon (Priest) on Aug 29, 2000 at 20:59 UTC
    how about eliminating 8 of them:
    #!/usr/bin/perl -l print join $/, map { sprintf "%-6.6s%7s", join("", @$_), join("", reverse @$_) } map { [ 'A' .. $_ ] } reverse 'A'..'G';

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-11-29 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls