This is not the normal way to exit a sub. If you try to exit a sub via last, a similar warning would be produced:
Exiting subroutine via last at a.pl line nnnn
It is not a good idea to suppress a valid warning. You are simply cheating on yourself.
The style you are getting into can easily introduce bugs. This is the same as using goto. You are altering execution path in a unstructured way.
In reply to Re: suppress warning: Exiting subroutine via next
by pg
in thread suppress warning: Exiting subroutine via next
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |