Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I don't understand why the $pkg was used with "{}" arround it before "$". could someone give me a hint or where to look for the anwser? thanks a lot,sub some_sub { my ($pkg) = caller; @{"${pkg}::_ATTR"} = @_; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why the variable is used this way?
by Corion (Patriarch) on Oct 30, 2005 at 18:58 UTC | |
by sauoq (Abbot) on Oct 30, 2005 at 19:49 UTC | |
by Anonymous Monk on Oct 30, 2005 at 19:47 UTC | |
|
Re: why the variable is used this way?
by bobf (Monsignor) on Oct 31, 2005 at 03:17 UTC |