in reply to Reformating pathname

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