in reply to Bug ? Perl dumps core on reference to @_ ?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Bug ? Perl dumps core on reference to @_ ?
by TheDamian (Vicar) on Dec 02, 2001 at 05:21 UTC |