About 57 results
Open links in new tab
  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

    Dec 30, 2010 · 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. operators - What is the difference between "||" and "or" in Perl ...

    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.

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

    Sep 5, 2012 · @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 actually any …

  6. Perl flags -pe, -pi, -p, -w, -d, -i, -t? - Stack Overflow

    Jun 10, 2011 · Below are the flags that I encounter most often, and I don't have a clue what they mean: perl -pe perl -pi perl -p perl -w perl -d perl -i perl -t I will be very grateful if you tell me what each of …

  7. How does double arrow (=>) operator work in Perl? - Stack Overflow

    Feb 2, 2016 · The => operator in perl is basically the same as comma. The only difference is that if there's an unquoted word on the left, it's treated like a quoted word. So you could have written Martin …

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

    7 Perl arrow operator has one other use: Class−>method invokes subroutine method in package Class though it's completely different than your code sample. Only including it for completeness for the …

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

    Nov 23, 2020 · 2.1 Perl变量 要赋值,就要先了解Perl的变量,当我了解这部分的时候挺惊讶于变量的设计思路,Perl所有数字的内部变量都是双精度浮点数(double-precision floating-point)有过其他编 …

  10. regex - What is /^ and /i in Perl? - Stack Overflow

    The match operator is the syntax that tells the Perl interpreter: here comes a regex. In Perl, the match operator is normally delimited by '/' at start and end, but you can use delimiters (e.g., m{^foo}).