3 ms·
> join(‘,’,@{$foo->{‘bar’}}) Thank you for that example. I guess the equivalent in JavaScript is: foo.bar.join(',')
by combatentropy 7y ago
> join(‘,’,@{$foo->{‘bar’}})
Thank you for that example. I guess the equivalent in JavaScript is:
foo.bar.join(',')
- pflanze 7y agoCorrect. You can use libraries in Perl (autobox and a class offering "join") so you can write it in Perl as: $foo->{bar}->join(',') I've done that in FunctionalPerl[1]: use FunctionalPerl ":autobox"; my $foo= {bar=> ["hi", "there"]}; is $foo->{bar}->join(','), 'hi,there'; [1] https://metacpan.org/pod/FunctionalPerl https://metacpan.org/pod/FunctionalPerl