in reply to Re: Replacing parts of a string
in thread Replacing parts of a string

Unfortunately the code is not calendarview.pl, so I will try your

$string =~ s/month=\d+/month=$newmonth/g;
for my month and year.

Still to find a solution for the CalendarName then... In response to your comment, it could be numeric or alphnumeric, in any order.