Home   |   Contact Us   |   Site Map

 

 

 

  subs.pm Perldoc

 


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



 

Browse our Perldoc FAQs:

Perldoc Home

Perldoc Site Map


Previous Topics

stat.pm Perldoc

Status.pm Perldoc

Std.pm Perldoc

Storable.pm Perldoc

strict.pm Perldoc

Strict.pm Perldoc

Struct.pm Perldoc

Sub.pm Perldoc


Next Topics

Subs.pm Perldoc

Subst.pm Perldoc

SubstrHash.pm Perldoc

Switch.pm Perldoc

Symbol.pm Perldoc

Symdump.pm Perldoc

Syslog.pm Perldoc

SysV.pm Perldoc


Website Spotlight

Domain Hosting with the Leader in Innovative and Comprehensive Web Hosting Solutions, Globalnet GNP.

Reliable Domain Hosting

 

Click here to increase your web traffic insantly!


 Copyright © 1999-2005 Globalnet Promotions, LLC.   |   TheServerRoom.org Home    |   Sitemap    |   RSS News Feeds