Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
*myVar = \3.14159;
print ${*myVar}; # or... print ${*myVar{SCALAR}}; # or... print $main::myVar; # or... no strict 'vars'; print $myVar;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Typeglobs and constant variables
by kcott (Archbishop) on May 30, 2013 at 06:35 UTC | |
|
Re: Typeglobs and constant variables
by AnomalousMonk (Archbishop) on May 30, 2013 at 06:56 UTC | |
by kcott (Archbishop) on May 31, 2013 at 07:04 UTC | |
by BrowserUk (Patriarch) on May 31, 2013 at 09:12 UTC | |
by Anonymous Monk on May 31, 2013 at 09:37 UTC | |
|
Re: Typeglobs and constant variables
by choroba (Cardinal) on May 30, 2013 at 06:27 UTC | |
|
Re: Typeglobs and constant variables (read-only math PI constant)
by Anonymous Monk on May 30, 2013 at 07:35 UTC |