All I have to say is... (perldoc perlsyn; goto line 145)

     The following compound statements may be used to control
     flow:

         if (EXPR) BLOCK
         if (EXPR) BLOCK else BLOCK
         if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK
         LABEL while (EXPR) BLOCK
         LABEL while (EXPR) BLOCK continue BLOCK
         LABEL for (EXPR; EXPR; EXPR) BLOCK
         LABEL foreach VAR (LIST) BLOCK
         LABEL BLOCK continue BLOCK

notice how they use for and foreach. The rest are details, if you want
control flow, do it like they show you. Foreach for a non-numeric loop, and
For for a numeric loop. It's for readability and standards.

So when I have to answer a question - or read an answer - on Perl Beginners,
I don't want to see:

for $names (@people){  ## trying to confuse
        ## stuff here where $name contains a string or reference to a data
type
        }

foreach $num (1 .. 100){  ## trying to confuse
        ## stuff here
        }

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to