About 24,400,000 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. 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.

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

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

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

  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., m{^foo}).

  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 string to a new …

  9. 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 number of digits, …

  10. Perl - Multiple condition if statement without duplicating code ...

    This is a Perl program, run using a terminal (Windows Command Line). I am trying to create an "if this and this is true, or this and this is true" if statement using the same block of code for both conditions …