Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Style & subroutine organization

by demerphq (Chancellor)
on Aug 29, 2001 at 21:41 UTC ( [id://108819]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    # GLOBAL DEFINITIONS
    ...
    # END{}
    # main() equivelent.
    __DATA__
    
  2. or download this
    my $var;
    sub foo {$var++; #ie code}
    ...
    # code
    # ....
    __DATA__
    
  3. or download this
    { #Anonymous block for the following static lexicals:
      my $static_scalar;
    ...
      sub push_stack { push @static_array,@_}
      sub pop_stack  { pop @stack}
    } #End anonymous block
    
  4. or download this
    use Some::Class;
    sub sna{}
    ...
    # code
    # ....
    __DATA__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://108819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found