in reply to Plibbles

I like it, but any reason you dont indent past one level?
Is that for perlmonks formatting reasons? otherwise it just makes your code harder to follow? just curious....
sub draw_worm { my @worm = @_; my $head = shift @worm; $o->addstr($head->{y}, $head->{x}, '@'); foreach my $segment (@worm) { $o->addstr($segment->{y}, $segment->{x}, 'o'); if ($bleh) { #stuff } } }

Replies are listed 'Best First'.
(tye)Re: Plibbles
by tye (Sage) on Jul 12, 2001 at 15:13 UTC

    FYI (where Y=y'all's), each tab in code becomes 4 spaces in my testing. I'm guessing that The Monastery does that translation.

    I've updated the root node to have spaces instead of tabs.

            - tye (but my friends call me "Tye")