in reply to Re: checking if a variable is tied or not
in thread mod_perl and cache?
use Tie::IxHash; use strict; use warnings; { my %hash; print ref(tie(%hash, "Tie::IxHash"))."\n"; $hash{'hi'} = 1; $hash{'there'} = 2; some(\%hash); } sub some{ my $temp = shift; print ref($temp)."\n"; # my %hash = %{$temp}; # print ref(tied(%hash)); print ref(tied(%{$temp})); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: checking if a variable is tied or not
by Flame (Deacon) on Mar 04, 2003 at 03:03 UTC |