sueme has asked for the wisdom of the Perl Monks concerning the following question:
Why can't I say:my %h = ('a', ['A', 'B'], 'b', 'B','a b', 'A B'); print "@{$h{a}}\n";
print "@${a}\n";
Also, why the curly braces surrounding the array (@{..})
Thanks - sue
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: syntax issue
by hbm (Hermit) on Dec 27, 2011 at 18:23 UTC | |
|
Re: syntax issue
by kennethk (Abbot) on Dec 27, 2011 at 18:28 UTC | |
|
Re: syntax issue
by graff (Chancellor) on Dec 27, 2011 at 19:02 UTC | |
|
Re: syntax issue
by JavaFan (Canon) on Dec 27, 2011 at 18:54 UTC | |
|
Re: syntax issue
by TJPride (Pilgrim) on Dec 27, 2011 at 20:41 UTC | |
|
Re: syntax issue
by ikegami (Patriarch) on Dec 28, 2011 at 19:08 UTC | |
|
Re: syntax issue
by Anonymous Monk on Dec 27, 2011 at 20:03 UTC | |
|
Re: syntax issue
by cjcollier (Novice) on Dec 28, 2011 at 18:20 UTC | |
by ikegami (Patriarch) on Dec 28, 2011 at 19:21 UTC |