About 17,800,000 results
  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 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"

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

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

  8. arrays - Perl: if ( element in list ) - Stack Overflow

    Mar 5, 2010 · I'm looking for presence of an element in a list. In Python there is an in keyword and I would do something like: if element in list: doTask Is there something equivalent in Perl …

  9. How can I print the contents of a hash in Perl? - Stack Overflow

    Apr 24, 2016 · I keep printing my hash as # of buckets / # allocated. How do I print the contents of my hash? Without using a while loop would be most preferable (for example, a one-liner would …

  10. What is the difference between Perl's ( or, and ) and ( ||, && ) short ...

    Sep 25, 2012 · I came to Perl 5 from C and Perl 4 and always used || until I saw more scripts using or and I liked the way it looked. But as the above quiz shows, it's not without its pitfalls …