Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: use and require inside subs

by ysth (Canon)
on Nov 03, 2004 at 07:01 UTC ( #404829=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN {
        if ($^O eq 'MSWin32') {
    ...
            # else load $config from flat files
        }
    } # end system specific compile time code
    
  2. or download this
    require Win32::TieRegistry;
    Win32::TieRegistry::->import(Delimiter=>"/", ArrayValues=>0 );
    
  3. or download this
    use if $^O eq 'MSWin32',
        "Win32::TieRegistry", Delimiter=>"/", ArrayValues=>0;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2022-10-01 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (3 votes). Check out past polls.

    Notices?