in reply to Re^5: Using an hash ref to match files with directories
in thread Using an hash ref to match files with directories
first response:
This captures the initials from the targetfile. Those initials
are what I need to check for a match with the keys in
in the hash. Once I find a match, then I can use the value to
work on the correct dir.
Second response:
The idea behind the sub seq_customer_dirs is to find the customer/user dir.
Example: When the program runs across a file with the initials "MJ",
which is captured by $seq, it checks for eq with a hash $key.
If there is eq, hash $key = "MJ", then the value is returned as the dir.
In this case the $value is "Michael Jordan" and that would be returned
to the main program as the
directory to work on.
LomSpace