in reply to How does one get the name of a passed scalar?
$test = 123; echoprint('$test'); sub echoprint { print "$_[0] = ".eval($_[0]) } [download]