in reply to why this works? quoted strings
${ ... } just interpolates the result from an expression, in this case ($ALIAS being 0) it is \"$pname\".
With the example you gave, the eval fails, so I don't know what's the point of it.
In Section
Seekers of Perl Wisdom