3 ms·
> join(‘,’,@{$foo->{‘bar’}}) You might write it this way. I prefer to use the features of the language developed in the last decade: join ',', $foo->{'bar'}
by Ultimatt 7y ago
> join(‘,’,@{$foo->{‘bar’}})
You might write it this way. I prefer to use the features of the language developed in the last decade:
join ',', $foo->{'bar'}->@*
Which if that looks spooky, the * simply means everything in the array. You can just as easily slice:
join ',', $foo->{'bar'}->@[2..5]