HNHacker News
TopNewBestAskShowJobs

fgasper

14 karma · joined June 25, 2020

submissionscomments
fgasper··on Perl 7 is going to be Perl 5.32, mostly
> Here's a fun exercise, write a dictionary of arrays.

Umm … ok:

my %dict = ( foo => [ 1, 2, 3 ], bar => [ 4, 5, 6 ], );

> Now write a dictionary of 2d arrays.

my %dict2d = ( foo => [ [1, 2, 3], [4, 5, 6] ], bar => [], );

It’s pretty much identical to JS. Not sure how that’s supposed to exemplify how hard it is to write Perl.