About 17,600,000 results
Open links in new tab
  1. 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 …

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

  4. What does if( -f <filename> ) in Perl do? - Stack Overflow

    Jun 22, 2017 · See perlfunc. It lists all the Perl built-in functions, including the "file test" ones: -X FILEHANDLE -X EXPR -X DIRHANDLE -X Where -X is one of the following: -r: File is …

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

  6. 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 &quot;if this and this is true, or this and this is true&quot; if statement using the same block of …

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

  8. terminology - What does " ~~ " mean in Perl? - Stack Overflow

    5 It is the smartmatch operator. In general, when you want information about operators in Perl, see perldoc perlop

  9. Perl subroutine arguments - Stack Overflow

    I have been reading about Perl recently and am slightly perplexed about how Perl handles arguments passed to subroutines. In a language like Python, Java or PHP, a function …

  10. Perl: How to correctly initialize a hash or array - Stack Overflow

    Jul 8, 2013 · If you're using mod_perl, there might be a pretty substantial difference between our %hash; and our %hash = ();. The former might retain data from previous iterations of the …