in reply to Re^3: $. - smarter than you might think
in thread $. - smarter than you might think

Ok, I played with your code and came up with a modification of my own:

Updates:

<radiant.matrix>
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet

Replies are listed 'Best First'.
Re^5: $. - smarter than you might think
by shmem (Chancellor) on Jun 26, 2006 at 16:23 UTC
    Hey, good on ye... it's always nice to see bad hacks smoothened into a reasonable thing.

    radiantmatrix ++ if $self->($points_left).

    But! you have an extra ) on line two of your code ;) And if would get picky, I'd rather write warn +($. == $d ? '>' : ' ') than print STDERR. Flavours :)

    thx & greets,
    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s,/,($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e,e && print}