![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Another "Can't use string as an ARRAY ref"by hippo (Bishop) |
on Dec 05, 2016 at 14:07 UTC ( #1177214=note: print w/replies, xml ) | Need Help?? |
Your useful print statement shows you that $plants->[$i]{'common'} has value "State Street Miyabe Maple". What then do you intend this expression from the following line to do?
That's clearly the equivalent of:
which is nonsense. You cannot dereference a scalar string like that. Does that make it clearer to you?
In Section
Seekers of Perl Wisdom
|
|