develooper Front page | perl.perl6.language | Postings from July 2001

Re: nice2haveit

From:
Dan Sugalski
Date:
July 17, 2001 09:00
Subject:
Re: nice2haveit
Message ID:
5.1.0.14.0.20010717115314.02134358@24.8.96.48
At 05:10 AM 7/17/2001 +0000, Mark Morgan wrote:
>Raptor <raptor@unacs.bg> wrote:
> > I mean something like this :
>
> > instead of :
> > #$Request->{Params}
> > local *myhash = \%{$$Request{Params}};
>
> > my %myhash alias %{$$Request{Params}};#see - it is my (now as far as I know
> > u can't have it 'my')
>
>You don't need a typeglob there; you can do the following, which does work
>with 'my':
>
>my %myhash = %{$Request->{Params}};

Originally he wanted an alias, and that won't do it. You'll flatten and 
unflatten, and changes to %myhash won't be reflected in the original.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk




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