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

Re: do while loops

by Anonymous Monk
on Oct 24, 2004 at 03:41 UTC ( [id://401962]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $value=5 <------ ok that is the problem it does not have ;
    do{
      print "$value\n";
      $value=$value-1;
    } while($value>10);
    
  2. or download this
    $value=5; # now have ;
    do{
      print "$value\n";
      $value=$value-1;
    } while($value>10);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-09-11 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (13 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.