in reply to Subroutine to indicate error condition

exit is not appropriate for handling error conditions, you should throw an exception instead. Please see Dealing with errors in subroutines for more discussion on this subject.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re: Subroutine to indicate error condition