>> 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