Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Why does Perl have typeglobs?

by choroba (Canon)
on Jul 08, 2014 at 20:54 UTC ( #1092796=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Why does Perl have typeglobs?
in thread Why does Perl have typeglobs?

Perl's symbol table is just a hash
Indeed. A hash of hashes, in a way:
use warnings; use strict; sub T { 42 } our $T = 24; *T = *STDOUT{IO}; print { *T{IO} } ${*T{SCALAR}}, ' ', *T{CODE}->(), "\n";
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: Why does Perl have typeglobs?
Download Code
Re^4: Why does Perl have typeglobs?
by ikegami (Pope) on Jul 08, 2014 at 21:13 UTC
    Not a hash of hashes, a hash of globs. Not only is the syntax different, so is the implementation. A glob is a struct, not a hash table.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1092796]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-07 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls