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
What does the - gt; arrow do in Perl? - Stack Overflow 7 Perl arrow operator has one other use: Class−>method invokes subroutine method in package Class though it's completely different than your code sample Only including it for completeness for the question in the title
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
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
regex - What is ^ and i in Perl? - Stack Overflow The match operator is the syntax that tells the Perl interpreter: here comes a regex In Perl, the match operator is normally delimited by ' ' at start and end, but you can use delimiters (e g , m{^foo})
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?
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 code for both conditions without having to repeat the code
How do you round a floating point number in Perl? Perl numbers whose absolute values are integers under 2**31 (on 32 bit machines) will work pretty much like mathematical integers Other numbers are not guaranteed