Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: given/when one case prefixes another

by ikegami (Patriarch)
on Apr 26, 2011 at 06:53 UTC ( [id://901287]=note: print w/replies, xml ) Need Help??


in reply to given/when one case prefixes another

If you want to continue into the next block, you can use continue. If you want to go to some other block, you can use goto, although jumping into another block is deprecated.

Replies are listed 'Best First'.
Re^2: given/when one case prefixes another
by John M. Dlugosz (Monsignor) on Apr 26, 2011 at 08:56 UTC
    The post by Neighbor shows that continue doesn't jump to the next body at all, but continues looking for another match.

    I didn't consider GOTO into the block to be a solution, though someone might show how to label the outside or something.

      Oops on continue. Iw as going by the docs, and they aren't clear in that area, so I naturally assumed C-like behaviour.

      Labeling the outside of a block statement is easy and legal.

      FOO: { ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-29 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found