in reply to Symbolic References
Now that perl has references there are very few reasons to use these.
I don't know if this makes symbolic references clearer for you, but it did for me. Thanks for the question.our $reference = "global"; { my $reference = "local"; print "reference equals ${reference}, "; print "symbolic reference equals ${'reference'}.\n"; } print "Here ${reference} and ${'reference'} both come out of the sysbo +l table.\n"; print "This also shows how local differs from local\n"; { local $reference = "local"; print "reference equals ${reference}, "; print "symbolic reference equals ${'reference'}.\n"; }
|
|---|