You are viewing the version of this documentation from Perl 5.16.1. View the latest version
__SUB__

A special token that returns the a reference to the current subroutine, or undef outside of a subroutine.

This token is only available under use v5.16 or the "current_sub" feature. See feature.