Hacker News new | ask | show | jobs
by kqr 1121 days ago
One of the things sigil allow you to do is overload other syntax. The example I usually bring up is the difference between

    @hash{a,b,c}
which returns a list containing the values associated with keys a, b, and c; and on the other hand

    $hash{a,b,c}
which returns the single item associated with the key constructed from concatenating a, b, and c (used to emulate a three-dimensional array.)