Re: Problem with multiple file handles
Brian Strand (bstrand@carclub.com)
Tue, 26 Jan 1999 14:27:07 -0800
Are you doing something like:
my $line;
while ($line = <>) {
# process line
}
If so, you should probably use
my $line;
while (defined($line = <>)) {
# process line
}
I have gotten the exact error message you got (including the "line
65535" part), and this fixed it.
Regards,
Brian Strand
Six Sigma Software
ysofer wrote:
>
> HELP!!!!!1
> I have a terrible problem which keeps coming in my scripts:
>
> Value of <HANDLE> construct can be "0"; test with defined() at homo.pl
> line 65535.
> Value of <HANDLE> construct can be "0"; test with defined() at homo.pl
> line 65535.
>
> *It always happends to me when I open two (incremental) file handles
> together.