in reply to Re^2: Why does Perl have typeglobs?
in thread Why does Perl have typeglobs?
Perl's symbol table is just a hashIndeed. 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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why does Perl have typeglobs?
by ikegami (Patriarch) on Jul 08, 2014 at 21:13 UTC |