Exiting subroutine via next at d:/Users/RolfLangsdorf/pm/switch.pl line 18 (#1) (W exiting) You are exiting a subroutine by unconventional means, such as a goto, or a loop control statement.