in reply to Getting different anonymous arrays
I don't get it either!use Data::Dumper; use strict; my @array; my %array; @array = qw( a b c d ) ; @array{ @array } = ( [ @array ] ) x @array ; print Data::Dumper->Dump([\%array], ["*array"]); __OUTPUT__ %array = ( 'c' => [ 'a', 'b', 'c', 'd' ], 'a' => $array{'c'}, 'b' => $array{'c'}, 'd' => $array{'c'} );
perl -v This is perl, v5.8.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Binary build 806 provided by ActiveState Corp. http://www.ActiveState. +com Built 00:45:44 Mar 31 2003 ---snip---
--
flounder
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting different anonymous arrays
by broquaint (Abbot) on Sep 08, 2003 at 18:59 UTC | |
|
Re: Re: Getting different anonymous arrays
by MidLifeXis (Monsignor) on Sep 08, 2003 at 16:57 UTC | |
by flounder99 (Friar) on Sep 08, 2003 at 18:38 UTC |