develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000403.009] uninitialised concatenation???

From:
Dan Sugalski
Date:
April 4, 2000 08:38
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
4.3.0.20000404113742.018b42a0@24.8.96.48
At 09:29 AM 4/4/00 -0600, Tom Christiansen wrote:
> >>     Undefined value in lexical $x defined at line 23 of Foo.pm
> >>     Undefined value in global $Foo::y at line 23 of Foo.pm
>
> >If we're storing enough data to give partially meaningful messages then
> >yes, we should provide some way to ferret out the name of the variable in
> >these cases.
>
>Oops,  I meant more like this:
>
>     Undefined value in lexical $x first defined at line 14 of Foo.pm
>         used at line 23 of Foo.pm
>     Undefined value in global $Foo::y at line 23 of Foo.pm
>
>That is, you must name a lexical according to where it is first
>defined, but a global according to its package.

Sure--should we add in the recursion level too while we're at it?

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About