Considering the little information you give you might be looking for:
$file=~ s/input01/output61/;Or maybe something like:
$file=~ s/input(\d+)/my $nb=$1+60;"output$nb"/e;where the code inside the right part of the substitution is eval'ed thanks to the /e modifier
In reply to Re: Reformating pathname
by mirod
in thread Reformating pathname
by raj8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |