About 20,400,000 results
Open links in new tab
  1. operators - What does =~ do in Perl? - Stack Overflow

    14 The '=~' operator is a binary binding operator that indicates the following operation will search or modify the scalar on the left. The default (unspecified) operator is 'm' for match. The …

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

    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 …

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

    Nov 10, 2019 · 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 …

  6. 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"

  7. 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., …

  8. How do I perform a Perl substitution on a string while keeping the ...

    In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original? I usually just copy the stri...

  9. What does exactly perl -pi -e do? - Stack Overflow

    Jan 25, 2015 · What does exactly perl -pi -e do? Asked 10 years, 9 months ago Modified 10 years, 9 months ago Viewed 9k times

  10. How do you round a floating point number in Perl?

    In 5.000 to 5.003 perls, trigonometry was done in the Math::Complex module. With 5.004, the Math::Trig module (part of the standard Perl distribution) implements the trigonometric …