News for hackers. Stuff that matters.
Re:What Killed Perl? by chabska on Wednesday November 19, 2025 @05:28PM (#45986194)
How would I know that $| is a var? It could be an operator, or a function, or a directive.
Re:What Killed Perl? by broken-kebab on Wednesday November 19, 2025 @07:07PM (#45987069)
There's no space for doubts at all. If it starts with $ then it's a scalar variable name. It's a very basic rule in Perl. Like any Perl tutorial would mention it within a few paragraphs from the start.
Re:What Killed Perl? by Bratmon on Wednesday November 19, 2025 @07:17PM (#45987145)
So then wouldn't that make $|++ the variable name?
Re:What Killed Perl? by broken-kebab on Wednesday November 19, 2025 @08:05PM (#45987490)
Smokey, this is not 'Nam! This is <Perl>, there are rules!

'$' guarantees a scalar. Then it either alphanumeric id, or a single non-alphanumeric symbol. And the latter means you deal with a 'special' var which with 100% certainty has a documentation entry.