develooper Front page | perl.perl5.porters | Postings from October 1999

@namespace::{key1,key2}. Why?

Thread Next
From:
dLux
Date:
October 31, 1999 03:34
Subject:
@namespace::{key1,key2}. Why?
Message ID:
19991031123436.A14074@dlux.hu
Hello!

  I've  spent one  whole  day to  find  out  what can  I  do with  the
"symbol table" hash-es to work as I expected.

  I        want        @namespace::{key1,key2}       return        the
($namespace::key1,$namespace::key2)   list,   but  it   only   returns
references to that.  Is it a bug or  a feature? Why it  is not working
as similar sub-hash-es?

  I  solved the  problem with  "map {  $$_ }  @namespace::{key1,key2}"
but I am not sure that this is a "clean" solution.
  I am afraid of perl changes, it may not work in future releases.

  Is it a better (and cleaner) way to do things like this?

  Please answer to  my email address (dlux at dlux.hu)  too, because I
am not on the perl5-porters list.

dLux
--
This message is READ-ONLY

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About