Front page | perl.perl5.porters |
Postings from October 1999
Re: 'my' usage
Thread Previous
|
Thread Next
From:
Nathan Torkington
Date:
October 26, 1999 11:42
Subject:
Re: 'my' usage
Message ID:
14357.62901.693839.511810@localhost.frii.com
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
table.
This is in perlref(1).
Nat
Thread Previous
|
Thread Next