in reply to use Safe;
The code print "trying $name..."; gets compiled into the code print "trying ".$name."...";.
Does that help you understand?