Array/Hash overloading
A reference to a
Python::Object
that wraps a python sequence and mapping objects can be used as if it was a perl array or hash. Examples:
for (@$list) { ... } while (my($k, $v) = each %$dict) { ... } $list->[0] = 42; $dict->{foo} = 42;
www.ActiveState.com
13/32