Re: how to read from more than one files at a time

2003-10-16 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > thanks John and Rob for the great enlightenment, they taught me a lot. > > I wonder why the following is wrong: > while (($in1=) && ($in2=)) > { > .. > } In the special case where returns a null string (when the last record of a file is empty and has no terminating

Re: how to read from more than one files at a time

2003-10-16 Thread PerlDiscuss - Perl Newsgroups and mailing lists
thanks John and Rob for the great enlightenment, they taught me a lot. I wonder why the following is wrong: while (($in1=) && ($in2=)) { .. } Ben Rob Dixon wrote: > <[EMAIL PROTECTED]> wrote: > > > > I need to read from more than one file at a time and do some > > operation on the strings an

Re: how to read from more than one files at a time

2003-10-16 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > I need to read from more than one file at a time and do some > operation on the strings and join them together, and put into > one output file. > > Here is the code. But I noticed the second file never get > read. It must be sth very simple to overcome this. Can anyon

Re: how to read from more than one files at a time

2003-10-15 Thread John W. Krahn
Perldiscuss - Perl Newsgroups And Mailing Lists wrote: > > Hi, Hello, > I need to read from more than one file at a time and do some operation on > the strings and join them together, and put into one output file. > > Here is the code. But I noticed the second file never get read. It must be >

RE: how to read from more than one files at a time

2003-10-15 Thread LoBue, Mark
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 15, 2003 11:42 AM > To: [EMAIL PROTECTED] > Subject: how to read from more than one files at a time > > > Hi, > > I need to read from more than one file at a

how to read from more than one files at a time

2003-10-15 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi, I need to read from more than one file at a time and do some operation on the strings and join them together, and put into one output file. Here is the code. But I noticed the second file never get read. It must be sth very simple to overcome this. Can anyone give me a hint? thanks, Ben # U