home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _39fa4bbf4ddbabf2c88b1d87eae93eeb < prev    next >
Text File  |  2000-03-23  |  2KB  |  65 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>subs - Perl pragma to predeclare sub names</TITLE>
  5. <LINK REL="stylesheet" HREF="../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> subs - Perl pragma to predeclare sub names</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  25. </UL>
  26. <!-- INDEX END -->
  27.  
  28. <HR>
  29. <P>
  30. <H1><A NAME="name">NAME</A></H1>
  31. <P>subs - Perl pragma to predeclare sub names</P>
  32. <P>
  33. <HR>
  34. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  35. <UL>
  36. <LI>Linux</LI>
  37. <LI>Solaris</LI>
  38. <LI>Windows</LI>
  39. </UL>
  40. <HR>
  41. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  42. <PRE>
  43.     use subs qw(frob);
  44.     frob 3..10;</PRE>
  45. <P>
  46. <HR>
  47. <H1><A NAME="description">DESCRIPTION</A></H1>
  48. <P>This will predeclare all the subroutine whose names are 
  49. in the list, allowing you to use them without parentheses
  50. even before they're declared.</P>
  51. <P>Unlike pragmas that affect the <CODE>$^H</CODE> hints variable, the <CODE>use vars</CODE> and
  52. <CODE>use subs</CODE> declarations are not BLOCK-scoped.  They are thus effective
  53. for the entire file in which they appear.  You may not rescind such
  54. declarations with <CODE>no vars</CODE> or <CODE>no subs</CODE>.</P>
  55. <P>See <A HREF="../lib/Pod/perlmodlib.html#pragmatic modules">Pragmatic Modules in the perlmodlib manpage</A> and <A HREF="../lib/strict.html#strict subs">strict subs in the strict manpage</A>.</P>
  56. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  57. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  58. <STRONG><P CLASS=block> subs - Perl pragma to predeclare sub names</P></STRONG>
  59. </TD></TR>
  60. </TABLE>
  61.  
  62. </BODY>
  63.  
  64. </HTML>
  65.