in reply to Re: Very quick question about names in perl
in thread Very quick question about names in perl

Yes, they are called that. But they don't consist of a single punctuation character and so were not included in your listing.
  • Comment on Re: Re: Very quick question about names in perl

Replies are listed 'Best First'.
Re: Re: Re: Very quick question about names in perl
by bart (Canon) on Dec 15, 2003 at 19:31 UTC
    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".

Re: Very quick question about names in perl
by Abigail-II (Bishop) on Dec 15, 2003 at 19:59 UTC
    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