develooper Front page | perl.fwp | Postings from December 2001

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
From:
Bernie Cosell
Date:
December 5, 2001 06:15
Subject:
Re: The Santa Claus Golf Apocalypse
Message ID:
3C0DE5FB.7013.2C125E4@localhost
On 5 Dec 2001, at 14:46, Eugene van der Pijll wrote:

> Bernie Cosell schreef op 05 december 2001:
> > On 5 Dec 2001, at 14:09, Eugene van der Pijll wrote:

> > 2) WHY does perl allow this --- it still seems like a slam-dunk syntax error 
> > situation to me
> 
> The global variables @a, $a, %a and &a are all stored in the same data
> structure (the typeglob, see perldata). Therefore, if the subscript
> separator variable $; can be used, there should be an entry in the
> symbol table for ;, and @;, %; and &; are valid names.

Aha.  THANKS.. The light bulb slowly begins to glimmer.  Of course: if Perl 
needs to be able to support all the $<char> scalars, then symtab entries for 
them must exist, and so you ought to be able to do anything with them.  So I 
would now not be at all surprised to find out that you can have a hash and and 
array named ";".

  /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:bernie@fantasyfarm.com     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About