Help for this page

Select Code to Download


  1. or download this
    use Exception::Class ( 'MyException' => { description => '' } );
    
    ...
    __END__
    I see you, exception class (boolean)!
    Nothing to see here (ne '').
    
  2. or download this
    use overload
        # an exception is always true
        bool => sub { 1 },
        '""' => 'as_string',
        fallback => 1;