If EXPR Is An Arbitrary Expression, What Is The Difference Between $Foo::{EXPR} And *{"Foo::".EXPR}

If EXPR Is An Arbitrary Expression, What Is The Difference Between $Foo::{EXPR} And *{"Foo::".EXPR}


  • 17 Jan, 2012

    The second is disallowed under `use strict "refs"'.Dereferencing a string with *{"STR"} is disallowed under the refs stricture, although *{STR} would not be. This is similar in spirit to the way ${"STR"} is always the symbol table variable, while ${STR} may be the lexical variable. If it's not a bareword, you're playing with the symbol table in a particular dynamic fashion.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.