in reply to Re^2: Modifying/Accessing hash in separate script
in thread Modifying/Accessing hash in separate script
You should be able to scope that global with our
You will most likely have more errors to contend with that are not necessarily related. Just deal with them one at a time. (And check in your code each time you successfully remove a compilation error or warning.)our %GLOBAL = { dir1 => "/path/to/directory" dir2 => "/path/to/another" };
UPDATE!
Why is that hash holding a hash reference? It probably should be either
orour %GLOBAL = ( dir1 => "/path/to/directory" dir2 => "/path/to/another" );
I sincerely hope that was a typo on your behalf, this looks to be a daunting piece of code to refactor.our $GLOBAL = { dir1 => "/path/to/directory" dir2 => "/path/to/another" };
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Modifying/Accessing hash in separate script
by mdskrzypczyk (Novice) on Jul 22, 2015 at 19:48 UTC | |
|
Re^4: Modifying/Accessing hash in separate script
by mdskrzypczyk (Novice) on Jul 22, 2015 at 20:00 UTC |