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=) {}
Hi Ramon,
The empty brackets in the line above were meant to represent the whole body of the
> > 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 command
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 =
--- WGO
<[EMAIL PROTECTED]>
To: 'Ramón Chávez' <[EMAIL 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
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 = ;
> }
>
> I don't get any value on $registro
>
> I need to insert $ini
e is probably a more efficient way)...
while ($registro = ) {}
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.
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 = ;
}
I don't get any value on $registro
I ne
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 = ;
}
I don't get any value on $registro
I need to insert $inicio = ; --
This way to get the the las