About 15,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 ...

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

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

  7. What is the significance of -T or -w in #!/usr/bin/perl?

    Jun 29, 2012 · In the case of perl /usr/bin/perl is the path to the perl interpreter. If the hashbang is left out the *nix systems won't know how to parse the script when invoked as an executable.

  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. In Perl, how can I read an entire file into a string?

    Jun 5, 2009 · Here we read file handle into an array (with the getlines method), and then convert the array's value into a string (using join). getlines is a Perl file handle built-in method coming …

  10. Should I choose ActivePerl or Strawberry Perl for Windows?

    Feb 5, 2015 · Strawberry Perl also comes with MinGW which means that Strawberry Perl can use quite a few XS modules directly from CPAN without any modification. The MinGW distribution …