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

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

  3. Should I use \\d or [0-9] to match digits in a Perl regex?

    Per perldoc perluniintro, Perl does not support using digits other than [0-9] as numbers, so I would definitely use [0-9] if the following are both true: You want to use the result as a number (such as …

  4. How do I set the timezone for Perl's localtime ()?

    In Perl, I'd like to look up the localtime in a specific timezone. I had been using this technique:

  5. Negative regex for Perl string pattern match - Stack Overflow

    Negative regex for Perl string pattern match Asked 14 years, 5 months ago Modified 8 years, 3 months ago Viewed 183k times

  6. In Perl, how do I change, delete, or insert a line in a file, or append ...

    I want to make changes to the contents of a file by modifying, deleting or inserting lines or appending to the beginning of the file. How can I do that in Perl? This is a question from the official...

  7. 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., m{^foo}).

  8. Perl to Python script hashing - Stack Overflow

    Aug 7, 2018 · The Python you show works differently from the Perl code. Why use fancy list comprehension when a simple if else like in Perl will suffice?

  9. How to replace a string in an existing file in Perl

    How to replace a string in an existing file in Perl Asked 14 years, 4 months ago Modified 4 years, 7 months ago Viewed 163k times

  10. perl - "inappropriate ioctl for device" - Stack Overflow

    In order for perl to be really useful it mirrors this model very closely, and does not treat files by emulating a magnetic tape as many 4gls do. So it tried an "IOCTL" operation 'open for write' on a file handle …