Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: use and require inside subs

by Ytrew (Pilgrim)
on Nov 03, 2004 at 04:15 UTC ( [id://404812]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN { 
            require "module.pm;"
            module::import();
    }
    
  2. or download this
    use warnings;
    use strict;
    ...
            # else load $config from flat files
        }
    } # end system specific compile time code
    
  3. or download this
    BEGIN { 
            print "-one-";
    ...
                    } # end of block that prints "-three-"
            } # end of block that prints "-two-"
    } # end of block that prints "-one-"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found