Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: use and require inside subs

by ysth (Canon)
on Nov 03, 2004 at 07:01 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (None)
    As of 2024-04-25 01:03 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found