正常的挫败感

Scalar variables in Perl are always referenced with the leading $. In the shell, you use $ to get the value, but leave the $ off to assign a new value. In awk or C, you leave the $ off entirely. If you bounce back and forth a lot, you’ll find yourself typing the wrong things occasionally. This is expected.

这段话引自Learning Perl第三版 2.5 Scalar Variables。我就遇到过这种情况,当时非常具有挫败感,一种暗无天日、没有前途的感觉。看了这段话,心理舒服多了,正常嘛,大家都这样,并非我个人的问题。

就我看来,This is expected这句话的价值非常大,它让人不必在无谓(或者无法控制)的事情上浪费感情。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据