Thank you very much,

Li

--- Igor Sutton <[EMAIL PROTECTED]> wrote:

> >
> >         for ($k; $k>=1;$k--) {$result*=$n--;}#line
> 15
> >
> 
> You don't need to declare $k inside for (). Change
> that to
> 
> for (; $k >= 1; $k--)
> 
> and perl won't complain about it anymore. I think
> the place before the first
> ';' is used for declaring any variables inside the
> lexical scope of for.
> Maybe someone could explain this better?
> 
> -- 
> Igor Sutton Lopes <[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to