my %ext = ( ... ); ... my $method = $ext{'JPEG'}; print $image->$method; ...
That makes it clearer what the point of the variable is - it's a method name.
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to Re: subroutine referencing
by dragonchild
in thread subroutine referencing
by imcsk8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |