FWIW I found a pretty simple way to detect if someone tries to use a return statement within a loop and to warn the author. Parsing the Op-tree with B::Concise shows explicit return ops.
BUT the concept is flawed cause loops can't be nested since @list is shared by all instances.¹ :(
Cheers Rolf
( addicted to the Perl Programming Language)
¹) Think I found an easy way to solve this by accessing the input-array via the caller(1)! :)
In reply to Re^2: Silencing specific warnings when executing coderef?
by LanX
in thread Silencing specific warnings when executing coderef?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |