Juerd wrote:
sub AUTOLOAD ($whatever) { # but no *[at]_ my $s = get_subref_for $whatever; our &::($whatever) := $s; return sub () { 1 };Then the subref will not be executed, and the bug will very quickly be discovered. I don't see any problem with this.
Can we do "return undef" in this case? I mean. can undef mean a no-op in subref context?
-- Maxim Sloyko