About 47,900,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. 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"

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

  4. 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 string to a new …

  5. How do you round a floating point number in Perl?

    Output of perldoc -q round Does Perl have a round () function? What about ceil () and floor ()? Trig functions? Remember that int() merely truncates toward 0. For rounding to a certain number of digits, …

  6. How do I compare two strings in Perl? - Stack Overflow

    In short: Perl doesn't have a data-type exclusively for text strings use == or !=, to compare two operands as numbers use eq or ne, to compare two operands as text There are many other functions and …

  7. Perl simple comparison == vs eq - Stack Overflow

    Aug 7, 2013 · 8 On the accepted answer for String compare in Perl with "eq" vs "==" it says that First, eq is for comparing strings; == is for comparing numbers. "== does a numeric comparison: it converts …

  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 code for both conditions …

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

    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 unintended side effects.

  10. What's the difference between Perl's backticks, system, and exec?

    You can find documentation about it in perlfunc. backticks like system executes a command and your perl script is continued after the command has finished. In contrary to system the return value is …