ActiveState homepage
docs.activestate.com
ActivePerl 5.32 Documentation
  • Get ActivePerl
      Release notes Windows installation Linux Installaton macOS Installation License
  • Get Started
      Windows Perl 5.32 docs
  • Contact Us

__SUB__ - perldoc.perl.org
Home  > Language reference > Functions > __SUB__
Perl 5 version 32.0 documentation

__SUB__

Perl functions A-Z | Perl functions by category | The 'perlfunc' manpage
  • __SUB__

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

    The behaviour of __SUB__ within a regex code block (such as /(?{...})/ ) is subject to change.

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

Documentation built with Hugo using the Material theme.
ActiveState Platform   Downloads   Community   Code Recipes  
© 2020 ActiveState Software Inc. All rights reserved. Trademarks. Privacy Policy.