Sorry.
Last message had an error.
--
I'm trying to read the last line on a Plain text File.
But when I use:
open (DATOS, $bd) || die Error: no se puede abrir el archivo;
while
ATOS){
$registro = DATOS;
}
I don't get any value on $registro
I
there is probably a more efficient way)...
while ($registro = DATOS) {}
Rob
-Original Message-
From: Ramón Chávez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 11:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Reading Plain Text File - help
Sorry.
Last message had an error
Ramón Chávez wrote:
I'm trying to read the last line on a Plain text File.
But when I use:
open (DATOS, $bd) || die Error: no se puede abrir el archivo;
while
ATOS){
$registro = DATOS;
}
I don't get any value on $registro
I need to insert $inicio = DATOS;
PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 10:58 AM
Subject: RE: Reading Plain Text File - help
Ramón Chávez wrote:
I'm trying to read the last line on a Plain text File.
But when I use:
open (DATOS, $bd) || die Error: no se puede abrir el archivo;
while
ATOS
Rgíón «hávkú wrote:
I'm trying to read the last line on a Plain text File.
The following was so well written by John I think it's worth
repeating. Thanks John!
John W. Krahn wrote:
1) Install http://search.cpan.org/author/URI/File-ReadBackwards-0.98/
use File::ReadBackwards;
my $bw =
I'm trying to read the last line on a Plain text File.
The following was so well written by John I think it's worth
repeating. Thanks John!
Absolutely. This should be made into a FAQ !! (or is there one already?)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Ramón Chávez wrote:
Thank you very much guys.
Rob, sorry but it didn't work
open (DATOS, $bd) || die Error: no se puede abrir el
archivo;
while ($registro=DATOS) {}
Hi Ramon,
The empty brackets in the line above were meant to represent the whole body of the