in reply to perl interpolation

Perl does try to “DWIM = Do What I Mean.”   Which is definitely a two-edged sword sometimes.   Just try to write code such that your intentions are perfectly clear ... not so much “to the computer,” but “to you and your fellow humans.”   No surprises, nothing clever, no side-effects.   The rest is merely Golf.