Getting the "Last modified" folder value to change further up the hierarchy.

I need the date of folder modification to effect the folders more than one level up.

IE.

When a file is added to

/main/subdir1/subdir2/
I want the "Last modified" dates of /main/ and /subdir1/ to also be updated.

Is there any easy way to do this?
Or does anyone know of some perl code that could take a full length path string and touch each of the dirs in it?

I'm really stumped here.

Red Hat Linux

 

 

 

 

Top