约 55 个结果
在新选项卡中打开链接
  1. operators - What does =~ do in Perl? - Stack Overflow

    51 I guess the tag is a variable, and it is checking for 9eaf - but does this exist in Perl? What is the "=~" sign doing here and what are the "/" characters before and after 9eaf doing?

  2. syntax - What are the differences between $, @, % in a Perl variable ...

    Here the sigil changes to $ to denote that you are accessing a scalar, however the trailing [0] tells perl that it is accessing a scalar element of the array in _ or in other words, @_.

  3. What is the meaning of @_ in Perl? - Stack Overflow

    2010年12月30日 · 128 perldoc perlvar is the first place to check for any special-named Perl variable info. Quoting: @_: Within a subroutine the array @_ contains the parameters passed to that subroutine. …

  4. [办公编程]Python不算啥,我已经有更好的选择——Perl (一文快速入 …

    2020年11月23日 · 骆驼书Learning Perl 《Learning Perl》骆驼书,全书加附录一共363页,很多对不对。买到书后我是如何翻这363页快速翻到Perl入门级? 我的答案是:不用每页都细读, 快速翻看目录找 …

  5. How can I parse command-line arguments in a Perl program?

    I'm working on a Perl script. How can I parse command line parameters given to it? Example: script.pl "string1" "string2"

  6. What's the use of <> in Perl? - Stack Overflow

    2012年9月5日 · @pst, <> is not a file handle, "null" or otherwise. It's an operator. Specifically, the readline operator. There's a reference to it as the "angle operator" in perlvar, although there isn't …

  7. operators - What is the difference between "||" and "or" in Perl ...

    2019年11月10日 · 53 From Perl documentation: OR List operators On the right side of a list operator, it has very low precedence, such that it controls all comma-separated expressions found there.

  8. Perl: Use s/ (replace) and return new string - Stack Overflow

    In Perl, the operator s/ is used to replace parts of a string. Now s/ will alter its parameter (the string) in place. I would however like to replace parts of a string befor printing it, as in pri...

  9. What does the -> arrow do in Perl? - Stack Overflow

    The outer part is a dereference - this implies is a reference to an array, so this operator deferences it to refer to the array directly, which is then copied to Chapter 8 of the ' Camel Book ' is a good place to …

  10. oop - How do I create a Perl class? - Stack Overflow

    2013年6月17日 · I am writing Perl classes to remove redundancies from scripts and since Perl has a lot of ways to make classes I keep having trouble making the classes properly. So does anyone have a …