Perl和Multimap

Avi*_*ash 1 perl

有没有办法在perl中实现C++多图?

dax*_*xim 7

使用数组哈希.

my %students = ( # keys are IDs, values are enrollments
    100023 => [qw(Geography Mining)],
    100058 => [qw(Geography Geology Woodcraft)],
);
Run Code Online (Sandbox Code Playgroud)