About 17,600,000 results
Open links in new tab
  1. 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...

  2. perl - Regex to match any character including new lines - Stack …

    Perl v5.12 added the \N as a character class shortcut to always match any character except a newline despite the setting of /s. This allows \n to have a partner like \s has \S.

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

  4. perl - Can't locate Switch.pm - Stack Overflow

    sudo apt-get install libswitch-perl can solve the problem. But if there are multi-versions perl in your system like me, first choose 5.18 version for aosp v4.x, then use cpan command install Swtich, …

  5. In Perl, how can I find the index of a given value in an array?

    In Perl, how can I find the index of a given value in an array? Asked 15 years, 11 months ago Modified 1 year, 7 months ago Viewed 44k times

  6. scope - Local and Global variables in perl - Stack Overflow

    In Perl before version 5, there was only globally scoped. These variables are the package variables. These variables are available everywhere in the program if you use the package …

  7. How to fix a locale setting warning from Perl - Stack Overflow

    AcceptEnv LANG LC_* which allows clients to propagate the values of those environment variables into new sessions. The warning gives you a hint about how to squelch it if you don't …

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

  10. perl - How can I install LWP::Protocol::https? - Stack Overflow

    As a side note, older Perl practices didn't include using all the modules you knew you depended on. In this case, you formerly didn't declare a dependency on LWP::Protocol::https because …