in reply to How does one get the name of a passed scalar?

Why don't you go about it the other way? Pass the name of the variable and use eval to get its value:
$test = 123; echoprint('$test'); sub echoprint { print "$_[0] = ".eval($_[0]) }
Just don't forget to use single quotes when you call eshoprint!