in reply to Environment Variable
print Dumper \%Env;
This will show you one thing: %Env doesn't have the structure you wish it to have. The simplest way around is to use two hashes: one for storing the key => value mapping, and one for key => type (ie file or directory).
Another possible solution is to store more complicated data structures - see perlreftut and perldsc for some introductions on how to deal with them.
|
|---|