Acme-Stack

 view release on metacpan or  search on metacpan

Stack.pod  view on Meta::CPAN

  5 arguments.

  As best I can tell:
  When perl calls abc(), PL_markstack_ptr is explicitly incremented BEFORE the
  abc() function is actually executed;
  When perl calls def(), PL_markstack_ptr is explicitly incremented just prior
  to the termination of def();
  When perl calls ghi(); PL_markstack_ptr is not explicitly incremented at all.

  Those are the only differences between the 3 functions.
  I conclude that abc() is the one that has been correctly formulated because
  never croaks.
  But I don't really understand how both def() and ghi() manage to see 5 args.
  And I don't understand how it is that, in test1.t, def() and ghi() pass tests
  3 and 4 (respectively), yet fail tests 6 and 7 respectively.

  I guess it has something to do with being inside another separate package
  (named Number) via method calls.
  BTW, when 5 arguments are detected, the first one is a Number object - with the
  four IV args that are given explicitly being tacked on behind it.



( run in 1.256 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )