in reply to Re: Re: s/// operator and binding
in thread s/// operator and binding

Well it's ugly to me because it's not immediately apparent what you're trying to do. Why not just do this
my($path) = $logfilepath; $path =~ s/$ref_srv/$server/i;
Choosing between the two, I'd go with the simpler. Just because you can do something doesn't mean you should ;)

update (broquaint): changed <pre> to <code>