Actually you can redefine subroutine by using eval "sub func {'...'}" and better yet is just to use anonymous subroutines and use ordinary variables to switch between different ones:
my $func = sub { return "value"; }; $func->(); $func = sub { return "another value"; }; $func->();
Courage, the Cowardly Dog
In reply to Re: MOPT-04 - identification, part 2
by Courage
in thread MOPT-04 - identification, part 2
by mstone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |