----- Original Message ---- > From: Larry Wall <[email protected]>
> : my @array = ' foo ', ' bar '; > : @array .= trim; > : > : say @array.perl; > : > : And what if I have an array of hashes of hashes of arrays? > : > : Currently you can call 'trim' on arrays, but it's a no-op. Similar issues > with chomp and friends. > > It should probably say "No such method". We have hyperops now to apply > scalar operators to composite values explicitly: > > @array».=trim Won't that fail with 'No such method' on an array of hashes? Or are hyperops applied recursively? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
