Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Saving compile time by running subroutines as separate files with 'do'

by George_Sherston (Vicar)
on Oct 01, 2001 at 14:23 UTC ( [id://115818]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($Action eq 'foo') {
        &foo;
    ...
    else {
        &baz;
    }
    
  2. or download this
    if ($Action eq 'foo') {
        do 'foo.pl';
    ...
    else {
        do 'baz.pl';
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found