if(ref($arg) eq 'ARRAY') { return map { $_->bar; } @{ $arg }; }