will change path the way you want, be sure to copy the value before doing this so your system call has access to both values. You may also want to check for success, in case filenames do not end in digits.sub dec {return(shift)-1}; $path =~ s/(\d+)$/dec($1)/e;
thanks to ferrency for the /e tip.
In reply to Re: change the end of a path inside file
by ichimunki
in thread change the end of a path inside file
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |