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 flags -pe, -pi, -p, -w, -d, -i, -t? - Stack Overflow Below are the flags that I encounter most often, and I don't have a clue what they mean: perl -pe perl -pi perl -p perl -w perl -d perl -i perl -t I will be very grateful if you tell me what each of those mean and some use cases for them, or at least tell me a way of finding out their meaning
What does the - gt; arrow do in Perl? - Stack Overflow The outer part is a dereference - this implies is a reference to an array, so this operator deferences it to refer to the array directly, which is then copied to Chapter 8 of the ' Camel Book ' is a good place to learn about references, or the perlref section of the Perl documentation The arrow operator is an object dereference, in this case fetching the member of the object Similarly, later
How does double arrow (= gt;) operator work in Perl? - Stack Overflow The => operator in perl is basically the same as comma The only difference is that if there's an unquoted word on the left, it's treated like a quoted word So you could have written Martin => 28 which would be the same as 'Martin', 28 You can make a hash from any even-length list, which is all you're doing in your example Your Readonly example is taking advantage of Perl's flexibility with