About 27,200,000 results
Open links in new tab
  1. operators - What does =~ do in Perl? - Stack Overflow

    man perlop "perlop - Perl operators and precedence" (at least in UNIX-like) answers this question: "Binary "=~" binds a scalar expression to a pattern match." – U. Windl Commented Apr 1, …

  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, @_. – Eric Strom

  3. variables - What is the meaning of @_ in Perl? - Stack Overflow

    Dec 30, 2010 · 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. What's the use of <> in Perl? - Stack Overflow

    Mar 13, 2015 · So, if the shell is handing you a bunch of file names, and you'd like to go through each one's data in turn, perl's <> operator gives you a nice way of doing that...it puts the next …

  5. operators - What is the difference between "||" and "or" in Perl ...

    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.

  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

  7. Perl flags -pe, -pi, -p, -w, -d, -i, -t? - Stack Overflow

    Jun 10, 2011 · However, when I try to google for what each flag means, I mainly get results to generic Perl sites and no specific information regarding the flags or their use is found there. …

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

    Learning Perl (豆瓣) 开始。快速浏览加实践下书上代码,两天就可以读个大概。 不过小骆驼书只覆盖了Perl Programming最基础的一部分知识,当你需要用Perl做面对对象或者大型程序编程 …

  9. How can I parse command-line arguments in a Perl program?

    It's also worth noting that in some programming languages the first (0) argument is the command or script itself... not so in perl though, of course. – danieltalsky Commented Dec 12, 2008 at 5:46

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

    See perldoc perlop.Use lt, gt, eq, ne, and cmp as appropriate for string comparisons:. Binary eq returns true if the left argument is stringwise equal to the right argument.