Perl 应该如何大写?

发布于 2024-07-04 16:41:13 字数 1476 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

野の 2024-07-11 16:41:13

perl 或 Perl 都可以。

perl or Perl is fine.

残花月 2024-07-11 16:41:13

尽管有很多相反的轶事,“PERL”从来都不是一个真正的缩写词——它是一个“反缩写词”。 Perl 这个名字首先被选定,然后一些人开玩笑地对它进行了扩展,从而流行起来。

PerlMonks 社区(强烈推荐!)教会了我这个约定,它与 Java 的类似:

  • 从不 PERL(或JAVA)
  • 当您谈论语言时,它是Perl(或Java)
  • 当您谈论解释器本身时,它是perl(或java)。

也就是说,如果你做得“错误”,它也不会产生一整堆豆子。

Despite a lot of anecdote to the contrary, "PERL" was never really an acronym -- it's a "backronym". The name Perl was chosen first, then some people jokingly applied expansions to it, which caught on.

The PerlMonks community (highly recommended!) taught me the convention, and it's similar to Java's:

  • It's never PERL (or JAVA)
  • When you're talking about the language, it's Perl (or Java)
  • When you're talking about the interpreter itself, it's perl (or java).

That said, it doesn't make a whole hill of beans if you do it "wrong".

韬韬不绝 2024-07-11 16:41:13

虽然,正如已经说过的,如果你写错了,也没有多大区别,但有些人确实使用正确的大写字母(或者至少,不指“PERL”或任何更明智的缩写词)作为招聘广告中的线索。 :)

While, as has been said, it doesn't make THAT much difference if you get it wrong, some folks do use correct capitalization (or at least, NOT referring to 'PERL' or any of the more sensible backcronyms) as a shibboleth for clue in job ads. :)

内心激荡 2024-07-11 16:41:13

“当指代语言时,名称通常是大写的 (Perl),而当指代解释程序本身时,名称通常是大写的 (perl),因为类 Unix 文件系统区分大小写。” 来自发布时的维基百科

"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." From wikipedia at time of posting.

忆梦 2024-07-11 16:41:13

这是 perlfaq1 的答案:

“perl”和“perl”有什么区别
和“Perl”?

一点点。 噢,你没说话
ASCII? :-) Larry 现在使用“Perl”来
表示语言本身和“perl”
它的实施,即
现任口译员。 因此汤姆的俏皮话
“只有 perl 才能解析
Perl。”你可以选择也可以不选择
遵循这个用法。 例如,
并行意味着“awk 和 perl”并且
“Python 和 Perl”看起来不错,而“awk
和 Perl”和“Python 和 Perl”
不是。 但永远不要写“PERL”,因为
Perl 不是缩写词、杜撰的
民间传说和事后扩展
尽管如此。

Here's the answer from 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.

作妖 2024-07-11 16:41:13

引用 Wikipedia 上的 Perl 文章

当指代语言时,名称通常是大写的 (Perl),当指代解释程序本身时,名称通常是大写的 (perl),因为类 Unix 文件系统区分大小写。 在《Programming Perl》第一版发布之前,人们普遍将该语言称为 perl; 然而,Randal L. Schwartz 在书中将该语言的名称大写,以使其在排版时更加突出。 案例区分随后被社区采纳。

另请检查 perlfaq 关于这个问题

Quoting the Perl article on Wikipedia.

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.

Also check the perlfaq about this question.

ゞ花落谁相伴 2024-07-11 16:41:13

语言的正确大小写是“Perl”,可执行文件的正确大小写是“perl”。 使用“PERL”会将您标记为不太熟悉该语言或社区的人。

另请参阅perlfaq1< 中的“perl”和“Perl”有什么区别? /a>.

The correct casing is "Perl" for the language and "perl" for the executable. Using "PERL" flags you as someone who isn't particularly familiar with the language or community.

See also What's the difference between "perl" and "Perl"? in perlfaq1.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文