Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

subs

Name subs
Version 1.02
Located at /usr/share/perl5
File /usr/share/perl5/subs.pm
Is Core Yes
Search CPAN for this module subs
Documentation subs
Module Details subs

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 package in which they appear. You may not rescind such declarations with no vars or no subs.

See perlmodlib/Pragmatic Modules and strict/strict subs.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024