Subject: | called_with(0,1) misbehaving |
This is with PadWalker-0.09, Devel-Caller-0.08, on
the same perl as reported at
http://www.xray.mpe.mpg.de/mailing-lists/cpan-testers/2003-07/msg00056.html
#!/usr/bin/perl
use strict;
use warnings;
use Devel::Caller qw( called_with caller_vars );
use Data::Dumper;
my $coy = rand 6;
warn "huh?\n", real( $coy, $coy );
warn "----";
warn "confusing\n", print $/, real( $coy, $coy );
print "$/ even more confusing $/", real( $coy, $coy );
sub real {
my @called = called_with(0,1);
return Dumper( \@called );
}
__END__
huh?
$VAR1 = [
undef
];
---- at test.pl line 10.
$VAR1 = [
undef,
'$coy',
'$coy'
];
confusing
1 at test.pl line 11.
even more confusing
$VAR1 = [
'$main::/',
undef,
'$main::/'
];