in reply to Re^2: How to get die() to stop printing a line number?
in thread How to get die() to stop printing a line number?

Yeah, but a simple die() won't tell you where the contract was violated - it would tell where you found out that the contract was violated. croak() would tell you where the contract was violated though.

Abigail

  • Comment on Re: How to get die() to stop printing a line number?

Replies are listed 'Best First'.
Re^2: How to get die() to stop printing a line number?
by adrianh (Chancellor) on Jul 02, 2003 at 12:37 UTC

    Okay - it would tell me where the contract violation was detected, not made :-)

    croak() might not tell me either of course due to the evils of perls lack of encapsulation.