Re: Perl realted question..

2008-01-12 Thread Celejar
On Thu, 10 Jan 2008 13:47:41 -0900 Ken Irving <[EMAIL PROTECTED]> wrote: > On Wed, Jan 09, 2008 at 10:04:19PM -0500, ISHWAR RATTAN wrote: > > > > Is there a way to place the last line read > > when reading from a file? My suspicion is there > > is no such thing but i do want to confirm.. > > Just

Re: Perl realted question..

2008-01-10 Thread Ken Irving
On Wed, Jan 09, 2008 at 10:04:19PM -0500, ISHWAR RATTAN wrote: > > Is there a way to place the last line read > when reading from a file? My suspicion is there > is no such thing but i do want to confirm.. Just another guess at what you're asking about; perhaps the word "placed" was intended to be

Re: Perl realted question..

2008-01-10 Thread Scott Gifford
Dave Sherohman <[EMAIL PROTECTED]> writes: > On Wed, Jan 09, 2008 at 09:45:15PM -0800, Sam wrote: >> if i read you correctly, you can read the file into an array and use pop, >> which will return the last element read.Or you could use @array[-1] > > That's rather wasteful of memory, which becomes

Re: Perl realted question..

2008-01-09 Thread Dave Sherohman
On Wed, Jan 09, 2008 at 09:45:15PM -0800, Sam wrote: > if i read you correctly, you can read the file into an array and use pop, > which will return the last element read.Or you could use @array[-1] That's rather wasteful of memory, which becomes a concern with larger files. If the objective is i

Re: Perl realted question..

2008-01-09 Thread Sam
if i read you correctly, you can read the file into an array and use pop, which will return the last element read.Or you could use @array[-1] On 1/9/08, Chris Howie <[EMAIL PROTECTED]> wrote: > > On Jan 9, 2008 10:04 PM, ISHWAR RATTAN <[EMAIL PROTECTED]> wrote: > > > Is there a way to place the

Re: Perl realted question..

2008-01-09 Thread Chris Howie
On Jan 9, 2008 10:04 PM, ISHWAR RATTAN <[EMAIL PROTECTED]> wrote: > Is there a way to place the last line read > when reading from a file? My suspicion is there > is no such thing but i do want to confirm.. > What do you mean by "place?" -- Chris Howie http://www.chrishowie.com http://en.wikipe