in reply to Re^4: Need help from the esteemed monks on scoping/hashes
in thread Need help from the esteemed monks on scoping/hashes

With %mapping = split; you are overwriting your old mapping. You should use something like
my ( $key, $value ) = split; $mapping{ $key } = $value if defined( $key ) and defined( $value );
to preserve previous mappings.