in reply to Night of the Day of the Dawn of the Son of the Bride of the Return of the Attack of the Revenge of the Horrors of References and Complex Data Structures

try
push ( @array, ${%hash} );

i don't see what your original line does. {%hash} doesn't do the de-referencing i think you're looking for.

Update i stand corrected.

  • Comment on Re: Night of the Day of the Dawn of the Son of the Bride of the Return of the Attack of the Revenge of the Horrors of References and Complex Data Structures
  • Download Code

Replies are listed 'Best First'.
Re: Re: Night of the Day of the...
by MeowChow (Vicar) on Feb 07, 2001 at 03:48 UTC
    Sure it does...
    perl -we "use Data::Dumper; %x = (1,2,3,4); $y = {%x}; print join $/, +$y, \%x, Dumper($y);" HASH(0x1a7f1a8) HASH(0x1a72abc) $VAR1 = { '1' => 2, '3' => 4 };