|
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages
|
|
This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles. For more information about the manual page format, see the manual page for manpages(5). |
subs(3pm) Perl Programmers Reference Guide subs(3pm)
NAME
subs - Perl pragma to predeclare sub names
SYNOPSIS
use subs qw(frob);
frob 3..10;
DESCRIPTION
This will predeclare all the subroutine whose names are in the list, allowing you to use them without
parentheses even before they're declared.
Unlike pragmas that affect the $^H hints variable, the "use vars" and "use subs" declarations are not
BLOCK-scoped. They are thus effective for the entire file in which they appear. You may not rescind
such declarations with "no vars" or "no subs".
See "Pragmatic Modules" in perlmodlib and "strict subs" in strict.
perl v5.8.8 2001-09-21 subs(3pm)
|
|