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


in reply to how to read perl variable from a line read from a file

The value is being read as literal string. You could try any of s///ee, eval "", some sort of -- overkill in this case -- template facility on the string read.