我应该如何大写Perl?

时间:2020-03-05 18:55:58  来源:igfitidea点击:

PERL? Perl? Perl?什么是好的风格?

我知道答案,我只是想确保问题已经存在,并且提问者知道表单正确。

解决方案

回答

佩尔

回答

"在引用语言时,名称通常大写(Perl),在解释器程序本身时,名称不大写(perl),因为类Unix文件系统区分大小写。"发布时来自维基百科。

回答

perl或者Perl都可以。

回答

在Wikipedia上引用Perl文章。

The name is normally capitalized (Perl) when referring to the language and uncapitalized (perl) when referring to the interpreter program itself since Unix-like file systems are case-sensitive. Before the release of the first edition of Programming Perl, it was common to refer to the language as perl; Randal L. Schwartz, however, capitalised the language's name in the book to make it stand out better when typeset. The case distinction was subsequently adopted by the community.

还要检查有关此问题的perlfaq。

回答

正确的大小写是语言的" Perl"和可执行文件的" perl"。使用" PERL"会将我们标记为对语言或者社区不太熟悉的人。

另请参见" perl"和" Perl"有什么区别?在perlfaq1中。

回答

尽管有很多相反的说法," PERL"从来不是真正的缩写-它是" backronym"。首先选择了Perl这个名字,然后有人开玩笑地对其进行扩展,后来流行开来。

PerlMonks社区(强烈建议!)教我该约定,它类似于Java:

  • 从来没有PERL(或者JAVA)
  • 在谈论语言时,它是Perl(或者Java)
  • 当我们谈论解释器本身时,它就是perl(或者java)。

就是说,如果我们做错了的话,它并不会使整堆豆子变得糟透了。

回答

就像已经说过的那样,如果我们弄错了并不会有多大区别,但有些人确实使用正确的大写字母(或者至少没有引用" PERL"或者任何更明智的反义词)作为" shibbolth"的缩写。招聘广告中的线索。 :)

回答

这是perlfaq1的答案:

What's the difference between "perl"
  and "Perl"?
  
  One bit.  Oh, you weren't talking
  ASCII? :-) Larry now uses "Perl" to
  signify the language proper and "perl"
  the implementation of it, i.e. the
  current interpreter.  Hence Tom's quip
  that "Nothing but perl can parse
  Perl."  You may or may not choose to
  follow this usage.  For example,
  parallelism means "awk and perl" and
  "Python and Perl" look OK, while "awk
  and Perl" and "Python and perl" do
  not.  But never write "PERL", because
  perl is not an acronym, apocryphal
  folklore and post-facto expansions
  notwithstanding.

回答

<pkrumins> perlbot:PERL

<perlbot>是Perl(对于语言)或者perl(对于口译员),但决不要" PERL"!