Help for this page

Select Code to Download


  1. or download this
    %main::GLOBAL = (
        dir1 = "/path/to/directory",
        dir2 = "/path/to/another",
    );
    
  2. or download this
    sub read_config_files {
        $main::GLOBAL{newstuff} = "a string that was added";
        # etc
    }
    
  3. or download this
    # this is file global.pl
    
    ...
        dir1 = "/path/to/directory",
        dir2 = "/path/to/another",
    );
    
  4. or download this
    # this is file config.pl
    
    ...
            print "$k => $val\n";
        }
    }
    
  5. or download this
    require GlobalStuff;