Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: A few random questions from Learning Perl 3

by pg (Canon)
on Jan 06, 2003 at 05:52 UTC ( #224556=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (1..10) {
        next if ($_ == 9);
        print("$_  ");
    }
    
  2. or download this
    foreach (1..10) {
        last if ($_ == 9);
        print("$_  ");
    }
    
  3. or download this
    foreach (1..10) {
        print("$_  ");
    ...
            redo;
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://224556]
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 2020-02-17 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (71 votes). Check out past polls.

    Notices?