What is the difference between Perl autodie and Fatal modules?

The Perl autodie and Fatal modules seem to do similar things. What are the reasons for using one of them in preference to the other?

+5
source share
4 answers

The Fatal module was added to the Perl kernel in version 5.05 (1998). The Fatal module has some significant flaws and inconsistencies in its API that cannot be fixed in a backward compatible way (i.e.: fixing the API will break the existing code that Fatal used).

autodie API , ( ).

, autodie. Perl 5.12.

autodie Perl 5.8. , Fatal, - , Perl (: 5.6), 2002 5,8, , , .

+9

Fatal

Fatal autodie. autodie, Fatal. autodie , .

+6

autodie Fatal, ( BUGS Fatal docs):

Fatal clobbers , , , : void. autodie.

+2
+1

All Articles