Changes

From SME Server
Jump to navigationJump to search
46 bytes added ,  16:40, 28 December 2013
Line 284: Line 284:  
Exactly like C:
 
Exactly like C:
   −
         for ($i = 0; $i <= $max; $i++) {
+
         [http://perldoc.perl.org/functions/for.html for] ($i = 0; $i <= $max; $i++) {
 
         ...
 
         ...
 
         }
 
         }
    
     The C style for loop is rarely needed in Perl since Perl provides the more friendly list scanning '''foreach''' loop.
 
     The C style for loop is rarely needed in Perl since Perl provides the more friendly list scanning '''foreach''' loop.
 +
 
==== foreach ====
 
==== foreach ====
  

Navigation menu