Movatterモバイル変換


[0]ホーム

URL:


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

This is subroutine definition, not a real functionper se. With just a NAME (and possibly prototypes or attributes), it's just a forward declaration. Without a NAME, it's an anonymous function declaration, and does actually return a value: the CODE ref of the closure you just created. Seeperlsub andperlref for details.

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