autodie 有缺点吗? [英] Are there disadvantages to autodie?

查看:53
本文介绍了autodie 有缺点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我时不时地看到 StackOverflow 上有人宣传autodie 的使用.但是在此处和网络其他地方的代码中,我不经常看到 autodie.有什么缺点吗?使用 autodie 时我会丢失一些东西吗?(我有被宠坏的想法,当使用 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)

推荐答案

autodie 文档 列出了一些您应该注意的问题和错误.然而,其中大部分都是相对较小的,从长远来看也是可以解决的.

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.

除此之外没有真正的缺点,除了在旧的 perl 版本上运行时可能存在额外的依赖性.它不经常使用的事实很可能是由于它相对较新.尽管如此,autodie(甚至是旧的 Fatal 模块)通常都是一个好主意.

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.

这篇关于autodie 有缺点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆