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

Re^2: (Golf) LED Sign

by tadman (Prior)
on Jun 08, 2001 at 06:05 UTC ( #86820=note: print w/ replies, xml ) Need Help??


in reply to Re: (Golf) LED Sign
in thread (Golf) LED Sign

To clarify: In one case, you have something which is, to abbreviate, XnXnXnXn versus XnXnXnX, where the former has a newline at the end, and the second does not. It's a minor thing, I know, and mostly cosmetic.

As a result, it doesn't wrap the last line around, leaving something like:

shell% perl srawls X XXX XXX XXX X X X X X X X X X X X X X XXX XXX X X X X X X X X XXX XXX XXX shell%
I like your art deco twist on the "font". Very retro.


Comment on Re^2: (Golf) LED Sign
Download Code
Re: Re^2: (Golf) LED Sign
by srawls (Friar) on Jun 08, 2001 at 06:09 UTC
    As a result, it doesn't wrap the last line around, leaving something like:

    Yep, it's a golf, so I was trying to shave off as many chars as possible; good observation though.

    I like your art deco twist on the "font". Very retro.

    Funny you mention that, It happened completely by accident, when I was trying to shorten the code : )

    The 15 year old, freshman programmer,
    Stephen Rawls

      Your "optimization" of (.)(.)(.) to (...) has the effect of making the letters only 3 wide instead of 4, since the duplicator [0,1,1,2] isn't working. Moving to a more compact representation would eliminate the need for this altogether.
Re: Re^2: (Golf) LED Sign
by dws (Chancellor) on Jun 08, 2001 at 06:09 UTC
    As a result, it doesn't wrap the last line around, leaving something like:
    ... X XXX XXX XXX shell%
    Configure your shell prompt to be "X", and you get free punctuation.

Re: Re^2: (Golf) LED Sign
by petral (Curate) on Jun 10, 2001 at 06:39 UTC
      As a result, it doesn't wrap the last line around...
    $_=join$/,@l[0,1,1..4],'';
    fixes that.

      p

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-10-25 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls