On Tuesday 19 Aug 2003 12:25 pm, Gary Stainburn wrote:
> Hi folks,
> I'm getting:
> Use of uninitialized value in hash element at /home/gary/bin/svcimport line
> 188, <FIN> line 4301.
> when running my program, of which like 188 is:
> $addr4=$abbrevs{$addr4} if (defined $abbrevs{$addr4}); # expand
> abbreviations
> Surely the 'if defined' should prevent this from happening by checking that
> it is in fact initialized. BTW, I'm not getting it for every input line,
> but for a significant number.
I've sussed it, I hand an empty pair (''=>'') in the hash from when I was
keying in the key/value pairs.
Gary Stainburn

This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000