Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Template, sorting an array with only one memberby Mr. Muskrat (Canon) |
on Oct 20, 2014 at 18:10 UTC ( [id://1104474]=note: print w/replies, xml ) | Need Help?? |
Container's one method is returning a single Object object instead of an array reference with a single Object object inside. The fix is quite simple:
Output: container=Container=HASH(0x1cc2e10) all: Object=HASH(0x1cdf6b0) name is foo Object=HASH(0x1cdf788) name is bar one: Object=HASH(0x1cdf6b0) name is foo
In Section
Seekers of Perl Wisdom
|
|