stevemadden has asked for the wisdom of the Perl Monks concerning the following question:
I try to access the array named @name, by @{'name'} or by using variable @$var where $var='name'.
Ultimately it does not work, @name is not same as @{'name'} which notation should I use instead of @$var or @{$var} to point to correct array @name ?
so far I have no other choice to use @{'name'} from beginning of my program, but I'd like to declare/use @name.
Thank you for your wisdom, Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array naming difference @name @{'name'}
by kcott (Archbishop) on Oct 26, 2017 at 04:21 UTC | |
|
Re: Array naming difference @name @{'name'}
by haukex (Archbishop) on Oct 26, 2017 at 05:25 UTC | |
|
Re: Array naming difference @name @{'name'}
by holli (Abbot) on Oct 26, 2017 at 05:20 UTC | |
by stevieb (Canon) on Oct 26, 2017 at 20:35 UTC | |
|
Re: Array naming difference @name @{'name'}
by Anonymous Monk on Oct 26, 2017 at 04:22 UTC |