zlacker

[parent] [thread] 2 comments
1. broken+(OP)[view] [source] 2025-11-20 00:07:05
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.
replies(1): >>Bratmo+e1
2. Bratmo+e1[view] [source] 2025-11-20 00:17:51
>>broken+(OP)
So then wouldn't that make $|++ the variable name?
replies(1): >>broken+N6
◧◩
3. broken+N6[view] [source] [discussion] 2025-11-20 01:05:56
>>Bratmo+e1
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.

[go to top]