Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Style & subroutine organization

by demerphq (Chancellor)
on Aug 29, 2001 at 17:41 UTC ( #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
Node Status?
node history
Node Type: note [id://108819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2019-12-08 18:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?