in reply to Re^2: get name of lexical variable
in thread get name of lexical variable

Try Data::Dumper::Simple or Data::Dumper::Names which do this.

Replies are listed 'Best First'.
Re^4: get name of lexical variable
by rovf (Priest) on Jul 13, 2009 at 12:04 UTC

    I'm not so happy with either one. Data::Dumper::Simple uses a source filter, and source filtering has already bitten me more than once. Data::Dumper::Names uses undocumented features in Perl which doesn't make it trustworthy either...

    -- 
    Ronald Fischer <ynnor@mm.st>