There is no bug, everything is working as it should, warnings is doing its job
Well, first of all you made mistake, the line 6 is where the assignment is done. Second, if you separate the assignment from localizing, then no warning is produced. According to documentation, there should be no difference. Whether one writes
orlocal(*FUNC) = sub {};
things should be the same. But they are not. First one produces warning, second one - not. That is why I said, that it might be considered a bug.local(*FUNC); *FUNC = sub {};
In reply to Re^3: UPDATED, mostly solved: separation of define + assignment different from combination?
by andal
in thread UPDATED, mostly solved: separation of define + assignment different from combination?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |