develooper Front page | perl.perl5.porters | Postings from October 1999

Re: 'my' usage

Thread Previous | Thread Next
Nathan Torkington
October 26, 1999 11:42
Re: 'my' usage
Message ID:
Andrew Dubry writes:
> print "value of tempvar_name=$$tempvar_name\n";
> Is there a lexical reason or something that 'my' does not work the way I
> thought it should in the above code??

Your code is using a ``symbolic reference'' (a string containing the
name of another variable).  Perl looks in the symbol table for "nq1",
but can't find it because my() variables don't live in the symbol

This is in perlref(1).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About