Like this?
@list = ([%hash_one],[%hash_two],[%hash_three]);
> -----Original Message-----
> From: Carl Jolley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 4:24 PM
> To: Peter Eisengrein
> Cc: Perl-Win32-Users Mailing List (E-mail)
> Subject: Re: @$_ works, so why doesn't %$_ ?
>
>
> On Thu, 14 Jun 2001, Peter Eisengrein wrote:
>
> > Aaarggghhhhh. This is making me nutty! I have several
> hashes that I want to
> > process identically, so I put their names in an array and
> want to call those
> > names iteratively from the array. But I just can't get it
> to work. Please
> > help!
> >
> >
> > ### here's what I am trying to do:
> > my @list = ("hash_one","hash_two","hash_three");
> > foreach (@list)
> > {
> > ### now process %$_ which I want to be
> > ### %hash_one
> > ### then %hash_two
> > ### then %hash_three
> > }
> >
> >
> >
> > I've used @$_ before, so why doesn't %$_ work? I've tried...
> > %$_
> > %{$_}
> > %${_}
> > %{${_}}
> > %\$_
> > %(eval($_))
> > ... and every other combination I can think of. I'll just
> be here banging my
> > head on my desk........
>
> To avoid being evil, I suggest instead of putting the names in the
> list that you put a reference to each hash in the list.
>
> **** [EMAIL PROTECTED] <Carl Jolley>
> **** All opinions are my own and not necessarily those of my
> employer ****
> k
>
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users