From: Eduardo Vázquez Rodríguez
        <[EMAIL PROTECTED]>
> Thanks Chris I try this and works
>
>    $. = 0;
>          do
>          {
>                  $_ = <INPUT>
>          }
>          until $. == 5;

Looks a bit too involved. Why not just

        <INPUT> for (1..5);

?

> WHILE <INPUT>

I believe you meant
        while (<INPUT>)

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


--
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