Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

cross scope gotos?

by LanX (Chancellor)
on Apr 06, 2010 at 11:16 UTC ( #833015=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub skip_on_odd { next NUMBER if $_[0] % 2 }
        NUMBER: for ($i = 0; $i < 5; $i++) {
            skip_on_odd($i);
            print $i;
        }
    
  2. or download this
    sub jump { goto NESTED };
     
    ...
    }
     
    cont();
    
  3. or download this
    Can't find label NESTED at /home/lanx/B/PL/PM/goto.pl line 1.
    0,a    
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://833015]
Approved by Ratazong
Front-paged by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-05-26 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?