This best practice is a simple suggestion: Put every raw list in parenthesis. It’s good. Read the rest of this entry »
The best practice is not to mix low and high precedence boolean operators. This is both good and bad, but following the rule can save your sanity. Read the rest of this entry »
The PBP cautions us not to use commas to separate and sequence statements. I think this is good advice most of the time. Read the rest of this entry »
Perl has a weird but cool operator, the “fat comma”, written as =>. It’s a comma, but with a special property that means a bareword on the left side is allowed. They’re often used for initializing hashes without having to quote every hash key.
The PBP suggests reserving => for items that go together, or, as it says “for pairs”. Name => value pairs, mostly. These things are related to each other and => makes that visible. Read the rest of this entry »