Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
just as an addition: I've been using a vim mapping for a very long time now.
imap DUMPER <ESC>^iwarn __PACKAGE__.':'.__LINE__.$".Data::Dumper->Dump([\<ESC>llyw$a], ['<ESC>pa']);<ESC> type $varnameDUMPER or %varnameDUMPER or @varnameDUMPER. result: warn __PACKAGE__.':'.__LINE__.$".Data::Dumper->Dump([\$varname], ['varname']); ok, the resulting perl code doesn't look nice, but I render it grey with this code:
In reply to Re: How to get variable name in trace message
by tinita
|
|