in reply to variables names used to define variables
Symobolic refs are there because Perl needs them for certain things to work. For instance, class/object method calls are always done symbolically (even under strict 'refs'). Also, there are some tricks you can do for making a bunch of accessors/mutators at once using symbolic refs (which also happens to save memory).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variables names used to define variables
by Abigail-II (Bishop) on Dec 11, 2003 at 16:00 UTC | |
by BrowserUk (Patriarch) on Dec 11, 2003 at 16:57 UTC | |
by hardburn (Abbot) on Dec 11, 2003 at 17:02 UTC | |
by Abigail-II (Bishop) on Dec 11, 2003 at 17:06 UTC | |
by hardburn (Abbot) on Dec 11, 2003 at 17:23 UTC | |
by Aristotle (Chancellor) on Dec 11, 2003 at 17:24 UTC | |
by Anonymous Monk on Dec 11, 2003 at 17:39 UTC | |
by Aristotle (Chancellor) on Dec 11, 2003 at 17:47 UTC |