Think about Loose Coupling | |
PerlMonks |
Re^4: Should I use carp/croak or warn/dieby jeffenstein (Hermit) |
on May 30, 2018 at 17:43 UTC ( [id://1215487]=note: print w/replies, xml ) | Need Help?? |
I can only guess why Larry & Co. did it this way, and that guess would be that it was to preserve backwards-compatibility with perl 4, which already had the current interface for warn and die. Did caller exist in perl 4? It kind of makes sense to use a different interface since modules got a lot of changes in 5.0
In Section
Seekers of Perl Wisdom
|
|