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

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

Thread Next
October 31, 1999 03:34
@namespace::{key1,key2}. Why?
Message ID:

  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  too, because I
am not on the perl5-porters list.

This message is READ-ONLY

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About