Ofir wrote:
> Hi all,
>
> I have a file in the following format:
> Line 1
> Line 2
> Line 3
> Line 4
> Line 1
> Line 2
> Line 3
> Line 4
> Blank Lines
> Blank Lines
>
> When I read the File, it reads the blank lines too, so I have an excess
> record at the end.
> How can I avoid this? How will I get rid of the excess blank lines at the
> end of the file?
>
> TIA!
> OFir
>
>
>
while ( <OPENFILE> ) {
next /^\s*\n$/;
do_with( $_ );
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]