Re: Opening two files at once

2003-12-23 Thread denis
On Tue, 23 Dec 2003, drieux wrote: > > On Dec 23, 2003, at 9:03 AM, [EMAIL PROTECTED] wrote: > [..] > > Sorry for the curt thank you. You code looks really good. > > I'd never thought of it that way. What I think might > be the elegant way of saying 'thank you' to folks who > offer an idea/code/

Re: Opening two files at once

2003-12-23 Thread drieux
On Dec 23, 2003, at 9:03 AM, [EMAIL PROTECTED] wrote: [..] Sorry for the curt thank you. You code looks really good. I'd never thought of it that way. What I think might be the elegant way of saying 'thank you' to folks who offer an idea/code/suggestion/BriefPsychoticEpisode would be something on t

Re: Opening two files at once

2003-12-23 Thread denis
Drieux, Sorry for the curt thank you. You code looks really good. On Mon, 22 Dec 2003, drieux wrote: > > On Dec 22, 2003, at 4:32 PM, [EMAIL PROTECTED] wrote: > > > I have two text files I would like to open and read at the same time. > > Whats the best way to do this? > > the only problem wi

Re: Opening two files at once

2003-12-23 Thread denis
On Mon, 22 Dec 2003, drieux wrote: > > On Dec 22, 2003, at 4:32 PM, [EMAIL PROTECTED] wrote: > > > I have two text files I would like to open and read at the same time. > > Whats the best way to do this? > > the only problem with your current form, barring > the faux paux of > > while( (

RE: Opening two files at once

2003-12-23 Thread denis
On Mon, 22 Dec 2003, Charles K. Clarkson wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > : > : I have two text files I would like to open and read at the > : same time. Whats the best way to do this? > : > : I was think along these lines: > : > : open (TESTFILE, " > It is helpful

Re: Opening two files at once

2003-12-22 Thread drieux
On Dec 22, 2003, at 4:32 PM, [EMAIL PROTECTED] wrote: I have two text files I would like to open and read at the same time. Whats the best way to do this? the only problem with your current form, barring the faux paux of while( ($line1 = ) && ($line2 = )) { } is what to do with t

RE: Opening two files at once

2003-12-22 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : : I have two text files I would like to open and read at the : same time. Whats the best way to do this? : : I was think along these lines: : : open (TESTFILE, "http://learn.perl.org/>

Opening two files at once

2003-12-22 Thread denis
I have two text files I would like to open and read at the same time. Whats the best way to do this? I was think along these lines: open (TESTFILE, <"somefile.txt")|| die "can not open file"; open (LOGFILE, <"my_other_file")|| die "can not open other file"; while (($line1 = ) & ($line2 = ))