RE: Reading Plain Text File - help

2003-02-07 Thread Ramón Chávez
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

RE: Reading Plain Text File - help

2003-02-07 Thread Hanson, Rob
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

RE: Reading Plain Text File - help

2003-02-07 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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;

RE: Reading Plain Text File - help

2003-02-07 Thread Ramón Chávez
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

Re: Reading Plain Text File - help

2003-02-07 Thread Rob Dixon
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 =

RE: Reading Plain Text File - help

2003-02-07 Thread Kipp, James
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,

Re: Reading Plain Text File - help

2003-02-07 Thread R. Joseph Newton
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