On Tue, 22 Jan 2002, Uri Guttman wrote:
> >>>>> "dne" == dskippy@ccs neu edu <[EMAIL PROTECTED]> writes:
>
> >> By the way, just so there are no surprises down the road, the
> >> keys(%PIZZA::) system returns names of non-scalar variables and
> >> subroutines (and formats and filehandles?) too. If you have to
> >> distinguish these from scalars, you may have to use arcane typeglob
> >> syntax as some have shown in examples. Or if you don't care about
> >> undef values, check defined($$name).
>
> dne> yeah i assumed i'd get it all... thank fully it's set up for that things
> dne> are either static and i know the names and types, or all variables of a
> dne> package are of the same type. so even though it's tricky, it's not a
> dne> problem here particularly
>
> you complain about not liking hash of hash but you like mucking with
> symbol tables which are just hashes? that makes absolutely no sense. it
it's because they get merged without explicit calls. that's really the
only reason.
btw: first class values are values that can be passed as an argument,
returned as a value, and stored in a data structure. in perl only scalars
are first class thus you must reference every value with a scalar to use
them in the mentioned places. (accept maybe with prototypes you can pass
them, i'm not sure)
> is more work to deal with the symbol tables and trickier if you have to
> deal with typeglobs. you haven't yet clarified what you need there or
> what 'first class' objects are and why you can't store them in
> hashes/arrays.
>
> uri
>
> --
> Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com
> -- Stem is an Open Source Network Development Toolkit and Application Suite -
> ----- Stem and Perl Development, Systems Architecture, Design and Coding ----
> Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
>