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

Those are usually considered to be punctuation variables as well.

Abigail

  • Comment on Re: Very quick question about names in perl

Replies are listed 'Best First'.
Re: Re: Very quick question about names in perl
by tilly (Archbishop) on Dec 15, 2003 at 17:23 UTC
    Yes, they are called that. But they don't consist of a single punctuation character and so were not included in your listing.
      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".

      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