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

Re: [ID 20000403.009] uninitialised concatenation???

From:
Tom Christiansen
Date:
April 4, 2000 08:29
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
20345.954862177@chthon
>>     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.

--tom



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