GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SUBS (3)

.ds Aq ’

NAME

subs - Perl pragma to predeclare sub names

CONTENTS

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 Pragmatic Modules in perlmodlib and strict subs in strict.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.22.1 SUBS (3) 2015-10-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.