Sub::Call::Tail - Tail calls for subroutines and methods
# instead of @_ = ( $object, @args ); goto $object->can("method")
# instead of @_ = @blah; goto &foo
This module provides a tail modifier for subroutine and method calls that will cause the invocation to have the same semantics as goto &sub.
When the tail modifier is compiled the inner subroutine call is transformed at compile time into a goto.
WARNING! The author does not endorse using this module for anything real. It was written primarily to demonstrate that such quackery can be achieved. Use at your own risk!
Bugs may be submitted through the RT bug tracker (or bug-Sub-Call-Tail@rt.cpan.org).
יובל קוג'מן (Yuval Kogman) <email@example.com>
Karen Etheridge <firstname.lastname@example.org>
Graham Knop <email@example.com>
Florian Ragwitz <firstname.lastname@example.org>
Andrew Main (Zefram) <email@example.com>
Graham Ollis <firstname.lastname@example.org>
Karen Etheridge <email@example.com>
This software is copyright (c) 2009 by יובל קוג'מן (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Sub::Call::Tail, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.