Get version for 'parent/base' class
(without to know of 'parent' class name)
do { no strict; ${__PACKAGE__.'::ISA'}[0]->VERSION() }
or
do { no strict; ${"${class}::ISA"}[0]->VERSION() }
Written by Sergiy Borodych
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Perl
Authors

janosgyerik
25.23K

Jean-Remy Duboc
12.29K
Related Tags
#perl
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#