in reply to what does @$ mean?

What everyone else said + I prefer this syntax: @{$msg} in part because it helps convey what's going on.

Replies are listed 'Best First'.
Re^2: what does @$ mean?
by Anonymous Monk on Oct 01, 2008 at 06:29 UTC
    in part because it helps convey what's going on Not any more or less than @$msg alone

      The braces make it clear that @$ is not a special sigil; that it's still an array with something going on inside. It also enhances readability on long or compound (deep hash access, for example) variable names. IIRC, there used to be a case where it further was necessary to disambiguate the resolution of variables but I'm not sure about that or if it's still true.

        If you don't know what @$foo means, you're not going to know what @{$foo} means, both being basic perl syntaxt.