in reply to s/// operator and binding

s/$ref_srv/$server/i for my $path = $logfilepath;

Makeshifts last the longest.