http://www.perlmonks.org?node_id=1005806


in reply to Variable value is not reflecting

Single quotes don't interpolate, you need double quotes. Read Quote and Quote like Operators for more info.
Sorry if my advice was wrong.