Looks like pugs does most of this:
Pugs version is 6.2.2.$ pugs -e'my @array=1..5;say "Array is @array[]";' Array is 1 2 3 4 5 $ pugs -e'my @array=1..5;say "Array is {@array}";' Array is 1 2 3 4 5 $ pugs -e'my %hash;%hash{"a".."c"}=1..3;say "Hash is %hash{}"' Hash is a 1 b 2 c 3 $ pugs -e'my %hash;%hash{"a".."c"}=1..3;say "Hash is {%hash}"' Hash is a 1 b 2 c 3 $ pugs -e'my %hash;%hash{"a".."c"}=1..3;say "Hash is %hash.as(q(%s => +%s), q(, ))";' *** Error: No compatible subroutine found: "&as" at -e line 1, column +35-73 $
After Compline,
Zaxo
In reply to Re^3: printing hashes
by Zaxo
in thread printing hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |