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