http://www.perlmonks.org?node_id=86820


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.

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