Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Plibbles

by agoth (Chaplain)
on Jul 12, 2001 at 15:05 UTC ( [id://95974]=note: print w/replies, xml ) Need Help??


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")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-16 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found