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