in reply to suppress warning: Exiting subroutine via next

Found the solution. Just replace the following line:

next unless m/.txt$/i;

with

return unless m/.txt$/i;

  • Comment on Re: suppress warning: Exiting subroutine via next