One more detail I missed. The effort is to do the file renaming recursively from a top directory. Deeper dirnames may be of variable length and so a substring with fixed field width won't be useful.
CPAN::Forum
Image-ExifTool - Re: Rename using path's last dirname as prefix