Thank you David for taking the time to explain it.
-Scott
On Tue, 8 Jan 2002, Wagner-David wrote:
> When you do the read, the pointer(best I can think of) is set at the next
>record. Unless you close the file and re-open the file, the next time you do a read
>it will start where you left off. In a loop, which has the following setup:
>
> while ( <FILEIN> ) {
>
> }
> Within the loop, you may find a particular type of record or text which
>requires you to read say three more records. You could do this by:
>
> chomp(my $MyRcd2 =<FILEIN>);
> chomp(my $MyRcd3 =<FILEIN>);
> chomp(my $MyRcd4 =<FILEIN>);
>
> You may put this in another loop with checks, but the next read would be at
>the fifth record.
>
> Wags ;)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]