Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Re: where do you put your subs

by Trimbach (Curate)
on Mar 08, 2002 at 15:24 UTC ( [id://150342]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl;
    
    ...
    sub bartender_says {
      ... many more lines of code
    }
    
  2. or download this
    #!/usr/bin/perl;
    
    ...
    bartender_says("What'll ya have?");
    man_says("Sasparilla. In a dirty glass");
    exit;
    
  3. or download this
    my $foo;
    
    ... zillions of lines of subs
    
    ... followed by your main logic
    
  4. or download this
    ... zillions of lines of subs
    
    ...
    use vars qw($foo);
    
    ... followed by your main logic
    
  5. or download this
    sub foo {
    ...
    ...
    }
    
    more program logic
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-19 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found