Perl Best Practices By Damian Conway Mataharipattaya

Builder AU recently caught up with Australian Perl guru Damian Conway to talk about Perl 6, his reasons for choosing Perl over other languages, PHP, and the upcoming Open Source Developers Conference ...

Perl Best Practices By Damian Conway Mataharipattaya 1

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? 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 @_ . Therefore, if you called a function ...

What is the difference between "||" and "or" in Perl? Asked 16 years, 9 months ago Modified 6 years, 5 months ago Viewed 114k times

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

Perl Best Practices By Damian Conway Mataharipattaya 5

@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 Best Practices By Damian Conway Mataharipattaya 6

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.

Perl Best Practices By Damian Conway Mataharipattaya 7