in reply to Re: scalar(*main::{VALUE}) appears to return a string rather than a value?
in thread scalar(*main::{VALUE}) appears to return a string rather than a value?

Related links symboltable problem, Unknown entries in %main::, What is %:: used for?, keys %::, Tutorials: Of Symbol Tables and Globs, perldata#Typeglobs and Filehandles

  • Comment on Re^2: scalar(*main::{VALUE}) appears to return a string rather than a value?

Replies are listed 'Best First'.
Re^3: scalar(*main::{VALUE}) appears to return a string rather than a value?
by Don Coyote (Hermit) on Nov 11, 2012 at 16:51 UTC

    ok I think I see this now

    print qq{caret is the special variable symbol for $^}.$/; ALTERPIDSYM: { local $main::{'$'} = q{^}; my $grapplehook = 'tri'; print ${'::$'}; print q{?},$grapplehook; }; print ${ $main::{'$'} }; exit 0;

    {local ${$main::{q<$>}=q<Coyote>}=q<heheh>;$^=${main::{q<$>}},$$;print($^);}
Re^3: scalar(*main::{VALUE}) appears to return a string rather than a value?
by Don Coyote (Hermit) on Nov 11, 2012 at 14:16 UTC

    Thanks for the references Anon :)