Problems? Is your data what you think it is? | |
PerlMonks |
How to display name of current packageby sylph001 (Sexton) |
on Aug 22, 2016 at 10:16 UTC ( [id://1170155]=perlquestion: print w/replies, xml ) | Need Help?? |
sylph001 has asked for the wisdom of the Perl Monks concerning the following question: Dear monks, Recently I tried to find a way to display the name of the perl package that the program is in, however didn't get any clue about this. Could you let me know if there is any special varaible or any other method that I can get the package name? Thanks a lot in advance
For example, I'm writing a package in "MyModule.pm", and I need to display the package name when the program is executing this package, like in below:
Back to
Seekers of Perl Wisdom
|
|