Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Perl style question: loops with postcondition

by RMGir (Prior)
on Jun 28, 2002 at 12:19 UTC ( [id://177994]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl style question: loops with postcondition
in thread Perl style question: loops with postcondition

giant said:

I don't like Nr.3 because I learned that goto: "It scans outward from your current location for the indicated label." (by larry wall) which decreases performance and just look weird (remembers me on basic and dos-batches...) to me...

I'll give you the basic and dos parts, but I'm fairly sure that "scans outward" would only apply if you're using the goto EXPR form, rather than a goto LABEL where the label is explicit.

For the goto LABEL form, the location of LABEL has to be resolved at compile time, so it's probably not very costly.

Check out Programming Perl, 3rd Edition, page 126.
--
Mike

  • Comment on Re: Re: Perl style question: loops with postcondition

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2025-05-23 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.