http://www.perlmonks.org?node_id=1225384


in reply to Copy an hash modifying some selected values

Hello

> I would want to check only these values...

If you already have the list, just process it...

for ( $hash1{key1}, $hash1{key2}{key22}, $hash1{key2}{key23} ){ $_ = File::Spec->file_name_is_absolute($_) ? $_ : File::Spec->rel2 +abs($_) }

If you want to copy and modify, just copy the hash and modify the copy. Anyway Data::Diver is a very cool module, but when simpler solutions are use them.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.