About 15,600,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 is the meaning of @_ in Perl? - Stack Overflow

    Dec 30, 2010 · 128 perldoc perlvar is the first place to check for any special-named Perl variable info. Quoting: @_: Within a subroutine the array @_ contains the parameters passed to that …

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

  5. What's the use of <> in Perl? - Stack Overflow

    Mar 13, 2015 · @pst, <> is not a file handle, "null" or otherwise. It's an operator. Specifically, the readline operator. There's a reference to it as the "angle operator" in perlvar, although there …

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

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

  8. 如何从零开始学习 Perl? - 知乎

    注:笔者主要使用Perl做软件测试方面开发 按照笔者自己的经历,从对Perl一无所知到可以上手干活,可以从小骆驼书—— Learning Perl (豆瓣) 开始。快速浏览加实践下书上代码,两天就可 …

  9. linux - Perl command line multi-line replace - Stack Overflow

    The -p causes Perl to iterate over every line of the input and execute the given code for each of them (and to print the lines afterwards). Specifically, the command perl -p -e …

  10. perl - Check whether a string contains a substring - Stack Overflow

    Jun 21, 2022 · How can I check whether a given string contains a certain substring, using Perl? More specifically, I want to see whether s1.domain.example is present in the given string …