in reply to (tye)Re: Cutting of Path
in thread Cutting of Path

How about this low-tech solution? Since the rootdir is at the start of the string...
substr($files[$i], 0, length($conf{rootdir})+1) = '';
buckaduck

UPDATE: I added 1 to the length to deal with the extra forward slash character...