Subject: | Lexical::Alias 0.04 did not work under the debugger |
Hi,
I use Lexical::Alias in conjunction with the perl debugger. But inside the debugger, the Aliases do not work.
Here is a small testcase.
use Lexical::Alias qw/alias_h alias_s/;
my ( %z, %h );
alias_h( %h, %z );
%h = ( a => 1 );
use Data::Dumper;
print Dumper( \%z );
$z{a} = 3;
print Dumper( \%h );
my ( $s, $z );
alias_s $s, $z;
$z = 1;
print $s;
output from perl -d
$VAR1 = {};
$VAR1 = {
'a' => 1
};
and without the -d
$VAR1 = {
'a' => 1
};
$VAR1 = {
'a' => 3
};
1
I use perl 5.8.4 with Lexical::Alias 0.04 on x86 and PPC.