About 19,500,000 results
Open links in new tab
  1. 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.

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

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

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

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

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

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

    Perl numbers whose absolute values are integers under 2**31 (on 32 bit machines) will work pretty much like mathematical integers. Other numbers are not guaranteed.

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

    Jan 25, 2015 · Thus perl is looping over the lines in the given files, executes the code with $_ set to the line and prints the resulting $_. The magic variabe $^I is set to an empty string.

  10. perl - Function to trim string leading and trailing whitespace

    Jan 4, 2011 · Is there a built-in function to trim leading and trailing whitespace such that trim(" hello world ") eq "hello world"?