Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there disadvantages to autodie?

Tags:

perl

autodie

Every now and again I see people on StackOverflow promote the use of autodie. But in the code here and elsewhere in the net I don't see autodie very often. Are there some disadvantages? Do I lose something when using autodie? (I have the idea of getting spoiled, when using autodie)

like image 638
sid_com Avatar asked Oct 15 '10 11:10

sid_com


1 Answers

The autodie documentation lists a couple of gotchas and bugs you should be aware of. However, most of those are relatively minor, and also fixable in the long run.

Other than that there are no real disadvantages, other than maybe the additional dependency when running on old perl versions. The fact that it isn't used very often yet might very well be caused by it being relatively new. Nevertheless, autodie (and even the old Fatal module) are generally a good idea.

like image 101
rafl Avatar answered Sep 18 '22 05:09

rafl