&CORE::caller()
authorFather Chrysostomos <sprout@cpan.org>
Sun, 21 Aug 2011 18:59:44 +0000 (11:59 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 25 Aug 2011 21:24:36 +0000 (14:24 -0700)
commitce0b554bf53c768c04939d95a2e6b23356a045b0
treea45b49a4116aed4454c29095fdcd727ec8350b23
parentc2f922f11b8978a4eea0e0d28626dd3c1f6eaba7
&CORE::caller()

This commit allows &CORE::caller to be called through references and
via ampersand syntax.  pp_caller is modified to take into account
two things:
1) pp_coreargs pushes a null on to the stack, since it has no other
   way to tell caller whether it has an argument.
2) The value coming from pp_coreargs (when not null) is off by
   one.  The OPpOFFYBONE flag was added in commit 93f0bc4935 for
   this purpose.

pp_coreargs is also modified, since it assumed till now that an
optional first argument was an implicit $_.
gv.c
op.c
pp.c
pp_ctl.c
t/op/coresubs.t