The placeholder behavior you describe is for post-wrappers. In a pre-wrapper assigning to $_[-1] triggers preemption, skipping to inner layers of wrappers IIUC.$ ./CorionDump.pl $symbol here is *main::wrapped_NoAttr $first here is bar They are not the same. 1 @args present. This works :bar Use of uninitialized value in concatenation (.) at ./CorionDump.pl lin +e 33. This dosen't work (core dump) : foo $ ls CorionDump.pl $
Hook::LexWrap appears to autovivify wrappers to undef in lines like:
I looks like if exists $wrapper{'post'}; should be preferred. Unfortunately, I don't use a recent enough AS installation to help with Windows specific problems, but I can imagine that undef coderefs might confuse it.# Hook/LexWrap.pm:43 () = $wrapper{post}->(@_, $return) if $wrapper{post};
After Compline,
Zaxo
In reply to Re: Bug ? Perl dumps core on reference to @_ ?
by Zaxo
in thread Bug ? Perl dumps core on reference to @_ ?
by Corion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |