![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
The $'name G'ame.by tadman (Prior) |
on Mar 01, 2001 at 01:18 UTC ( #61437=note: print w/replies, xml ) | Need Help?? |
I would suppose that the lexer in the perl parser is
intelligent enough to recognize the pattern for variables
of that sort. It could loosely be described as:
\$'([a-zA-Z_][a-zA-Z0-9_]*)?
Which could define a valid variable name.
Otherwise, how would you distinguish between $x and $xy? Or, $_ and $_x for that matter.
In Section
Seekers of Perl Wisdom
|
|