in reply to How do I pass refs to tied vars ?

As everyone said, GLOB aren't lexical.

In your code, you make tied(%b), where %b isn't %main::b, it's my (%b).

So, to fix your code, just change:

## From: my(%a, %b); ## To: my %a ; use vars qw(%b) ;
And now you can see the output:
tied a tied b
If you want to work with the reference to the tied HASH, use:
my $b = \%a; tied(%$b) ;
Or use Lexical::Alias, as japhy said. :-P

Graciliano M. P.
"The creativity is the expression of the liberty".