in reply to Re^2: Why does Perl have typeglobs?
in thread Why does Perl have typeglobs?
It was why they are structs with a bunch of pointers to different things
Perl can have arrays, scalars, hashes, etc with the same name. Therefore, the symbol table entry for a name must be able to hold all of them.
I don't think that too many people actually do that, am I wrong?
It doesn't matter how many do. It just matters if they can. That said, virtually every program uses both $_ and @_. The numerous programs using <> use $ARGV, @ARGV and *ARGV{IO}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why does Perl have typeglobs?
by Anonymous Monk on Jul 08, 2014 at 22:15 UTC |