copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
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?
What is the meaning of @_ in Perl? - Stack Overflow 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 subroutine More details can be found in perldoc perlsub (Perl subroutines) linked from the perlvar: Any arguments passed in show up in the array @_
Whats the use of lt; gt; in Perl? - Stack Overflow @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 isn't actually any such operator The angle brackets are used by two operators: readline or glob The operator depends on the contents of the brackets
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
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 variable then bind it to the s regex that does the replacement on the new string, but I was wondering if there is a better way to do this?
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 performing mathematical operations on it or storing it somewhere that only accepts proper numbers (e g an INT column in a database))