If you "objectify" your code then you can:
my $sub = 'handle_' . $type; die qq(There is no such type as "$type"\n) unless $self->can ($sub); $self->$sub (); ... sub handle_integer { ... }
In reply to Re: Trying to get around the "use strict 'refs'" Issue
by GrandFather
in thread Trying to get around the "use strict 'refs'" Issue
by qazwart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |