Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: use and require inside subs

by Ytrew (Pilgrim)
on Nov 03, 2004 at 04:15 UTC ( #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
Node Status?
node history
Node Type: note [id://404812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-08-13 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (74 votes). Check out past polls.

    Notices?