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

    Jan 24, 2019 · 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' …

  2. 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.

  3. 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...

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

  5. operators - What does =~ mean in Perl? - Stack Overflow

    May 2, 2012 · Possible Duplicate: What does =~ do in Perl? In a Perl program I am examining (namly plutil.pl), I see a lot of =~ on the XML parser portion. For example, here is …

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

    Output of perldoc -q round Does Perl have a round () function? What about ceil () and floor ()? Trig functions? Remember that int() merely truncates toward 0. For rounding to a certain …

  7. linux - Perl command line multi-line replace - Stack Overflow

    The -p causes Perl to iterate over every line of the input and execute the given code for each of them (and to print the lines afterwards). Specifically, the command perl -p -e …

  8. When should I use the & to call a Perl subroutine?

    Mar 11, 2015 · To call a subroutine with the same name as a Perl built-in. Just don't have subroutines with the same name as a Perl built-in. Check perlfunc to see the list of built-in …

  9. perl - Regex to match any character including new lines - Stack …

    Apr 24, 2017 · Perl v5.12 added the \N as a character class shortcut to always match any character except a newline despite the setting of /s. This allows \n to have a partner like \s has \S.

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