Actually, their name exists of a single control character, although they are to be written in the source as a caret+letter. For example, for $^W, the name is ctrl-W. If anybody find this hard to believe, try looking into the stash %:: ,the keys are the names for the global variables in main::.
use Data::Dumper;
$Data::Dumper::Useqq = 1;
print Dumper \%::;
Me, I have a hard time calling a control character, a "punctuation character". | [reply] [d/l] |
That all depends on what you consider a punctuation character.
In the Perl world, it's common to consider ^A .. ^Z punctuation characters when it's comes to variable names.
They follow the same rules: one letter variables, which are
forced to be in the main name space.
Don't let the fact that you may encode the name using a
two character digraph make you think it's a two character
name.
Abigail | [reply] |