in reply to Altering subroutine parameters using Hook::LexWrap
But this is a bug in Hook::LexWrap, right? The documentation seems to indicate that it should be possible, and there is even example code illustrating this feature (which does not seem to work)
wrap set_temp, pre => sub { splice @_, 0, 1, $_[0] * 1.8 + 32 }, post => sub { $_[-1] = ($_[0] - 32) / 1.8 };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Altering subroutine parameters using Hook::LexWrap (bug?)
by tye (Sage) on Jan 19, 2005 at 05:05 UTC |