For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > Re: Open a text file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Open a text file
Chris Devers

2004-09-30, 2:55 am

Jenda Krynicky

2004-09-30, 3:57 pm

From: Eduardo Vázquez Rodríguez
<evazquez@insys-corp.com.mx>
> Thanks Chris I try this and works
>
> $. =3D 0;
> do
> {
> $_ =3D <INPUT>
> }
> until $. =3D=3D 5;


Looks a bit too involved. Why not just

<INPUT> for (1..5);

?

> WHILE <INPUT>


I believe you meant
while (<INPUT> )

Jenda
=3D=3D=3D=3D=3D Jenda@Krynicky.cz =3D=3D=3D http://Jenda.Krynicky.cz =3D=3D=
=3D=3D=3D
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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com