esharris has asked for the wisdom of the Perl Monks concerning the following question:
The Exception::Class::throw method saves the line number like "die". To save the line number like "croak", I have to use croak.
... becomes ...MYException->throw();
Is there a more elegant solution?croak(MyException->new());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exception::Class croak?
by PreferredUserName (Pilgrim) on Jan 20, 2006 at 16:50 UTC | |
|
Re: Exception::Class croak?
by jdhedden (Deacon) on Jan 20, 2006 at 21:32 UTC |