As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center提供指导。




已关闭8年。




我打算学习Perl 5,并且由于我直到现在才使用PHP,所以我想对两种语言之间的差异有所了解。

当PHP作为一组“Perl hack”开始时,它显然已经克隆了Perls的某些功能。
  • 语法的主要区别是什么?确实,有了Perl,您就有更多的选择和表达方式的方式了吗?
  • 为什么不再经常将Perl用于动态网站?是什么使PHP越来越受欢迎?
  • 代替try)。当您用其他语言(以及Try::Tiny部分中列出的一些其他模块)找到异常(exception)时,Error's See Also ojit_a模块支持异常(exception)。
    PHP受Perl启发,就像《天堂魅影》受歌剧魅影启发,或者《奇异啤酒》受哈姆雷特启发。在学习Perl时,最好不要理会PHP的行为细节,否则您会被绊倒。

    我的大脑现在很痛,所以我要停下来。

    关于php - Perl和PHP之间的差异,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2534756/

    10-12 00:13
    查看更多