in reply to Re^4: Using a scalar as a constant?
in thread Using a scalar as a constant?
You can even do it in a strict safe manner :)
use constant test => 5; if(my $sub = __PACKAGE__->can('test')) { print $sub->(),"\n"; }
In Section
Seekers of Perl Wisdom