Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: $. - smarter than you might think

by radiantmatrix (Parson)
on Jun 26, 2006 at 15:56 UTC ( #557600=note: print w/replies, xml ) Need Help??


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:

  • 2006-06-26 : trailing paren crept in, removed -- thanks to shmem for noticing

<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}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2021-05-06 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (74 votes). Check out past polls.

    Notices?