good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^9: Getting for() to accept a tied array in one statementby Veltro (Hermit) |
on Apr 19, 2019 at 08:35 UTC ( [id://1232795]=note: print w/replies, xml ) | Need Help?? |
I absolutely agree with that too. I just interpreted a different intent:
If the intention was to iterate over the 'object' then a possible solution would be to use a de-reference. However I felt this would be a bad idea and decided to point this out. But it doesn't matter, everyone has proposed solutions that are much better. Esp. the solution hdb has found now using the lvalue sub is absolutely fantastic.
In Section
Seekers of Perl Wisdom
|
|