http://qs321.pair.com?node_id=1177214


in reply to Another "Can't use string as an ARRAY ref"

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?

$plants->[$i]{'common'}->[$jctr]{'sizes'}

That's clearly the equivalent of:

"State Street Miyabe Maple"->[$jctr]{'sizes'}

which is nonsense. You cannot dereference a scalar string like that. Does that make it clearer to you?