Movatterモバイル変換


[0]ホーム

URL:


functions /sub
(source,CPAN)
You are viewing the version of this documentation from Perl 5.38.3.View the latest version
#sub NAME BLOCK
#sub NAME (PROTO) BLOCK
#sub NAME : ATTRS BLOCK
#sub NAME (PROTO) : ATTRS BLOCK

This is subroutine definition, not a real functionper se. Without a BLOCK it's just a forward declaration. Without a NAME, it's an anonymous function declaration, so does return a value: the CODE ref of the closure just created.

Seeperlsub andperlref for details about subroutines and references; seeattributes andAttribute::Handlers for more information about attributes.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp