Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: outputting fun

by tye (Sage)
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")

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2016-10-27 15:34 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (365 votes). Check out past polls.