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

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

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

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

  8. 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 "if this and this is true, or this and this is true" if statement using the same block of …

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

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