use constant test => 5; if(my $sub = __PACKAGE__->can('test')) { print $sub->(),"\n"; }
In reply to Re^5: Using a scalar as a constant?
by suaveant
in thread Using a scalar as a constant?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |