About 20,000,000 results
Open links in new tab
  1. operators - What does =~ do in Perl? - Stack Overflow

    14 The '=~' operator is a binary binding operator that indicates the following operation will search or modify the scalar on the left. The default (unspecified) operator is 'm' for match. The …

  2. syntax - What are the differences between $, @, % in a Perl …

    Here the sigil changes to $ to denote that you are accessing a scalar, however the trailing [0] tells perl that it is accessing a scalar element of the array in _ or in other words, @_.

  3. What does the -> arrow do in Perl? - Stack Overflow

    7 Perl arrow operator has one other use: Class−>method invokes subroutine method in package Class though it's completely different than your code sample. Only including it for …

  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 …

  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 you round a floating point number in Perl?

    In 5.000 to 5.003 perls, trigonometry was done in the Math::Complex module. With 5.004, the Math::Trig module (part of the standard Perl distribution) implements the trigonometric …

  8. What is the difference of using special variable $_ and @_ in Perl?

    Feb 1, 2012 · Please explain what exactly the difference of $_ and @_ is in Perl. When to use which, given by example code.

  9. What's the safest way to iterate through the keys of a Perl hash?

    Dec 5, 2015 · If I have a Perl hash with a bunch of (key, value) pairs, what is the preferred method of iterating through all the keys? I have heard that using each may in some way have …

  10. In Perl, how can I concisely check if a $variable is defined and ...

    Sep 26, 2009 · I currently use the following Perl to check if a variable is defined and contains text. I have to check defined first to avoid an 'uninitialized value' warning: