For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > November 2004 > Re: Use of uninitialized value in subroutine entry at C:/Perl/site/lib/HTML/Parse.pm









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Use of uninitialized value in subroutine entry at C:/Perl/site/lib/HTML/Parse.pm
Michele Dondi

2004-11-27, 9:04 pm

On Sat, 27 Nov 2004 17:24:16 +0000, Nirvana
<param_nirvana@hotmail.com> wrote:

>perl script i'm getting this error:
>
>Use of uninitialized value in subroutine entry at


It's not an error. It's a warning, and by far one of the most common
ones. In fact the code that generates it often needs to be enclosed in
a

{
no warnings 'uninitialized';
# ...
}

block. If (and only if) you get a correct output you can silently
ignore it. FWIW I remember some Tk module *incorrectly* not being
protected against it some time ago... (and I did ignore it!)


Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{po
p^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com