in reply to %% in perl mean

This is probably just a means-nothing token that is meant to be put into a template-string of some kind to mark the place where (in this very statement) a substitution is to be performed. Look at the content of this element of "$var" and see if, as I suspect, it contains that particular substring at a fortuitous place.