http://www.perlmonks.org?node_id=1092834


in reply to Why does Perl have typeglobs?

Perl has typeglobs because Perl has sigils. A typeglob would make no sense in a language where you write:

string s; array a; hash h;

But a typeglob makes sense in a language where you can say:

our( $stuff, @stuff, %stuff ); open *stuff, ...; &stuff(); write stuff;

Looking in the symbol table under the single name "stuff", you might find 6 different things. What's an obvious way to implement that?

- tye