News for hackers. Stuff that matters.
Re:A little thing to love about Perl 6 and COBOL by maratc on Thursday February 05, 2015 @03:28AM (#9002255)
In both Perl and Python, "object" is a glorified hash, and its attributes are entries in that hash. Python just allows for a deeper level of syntactic sugar.
Re:A little thing to love about Perl 6 and COBOL by pwr22 on Thursday February 05, 2015 @07:49AM (#9002927)
In Perl a hash is any scalar value blessed into a class

In modern Perl the attibutes would be accessed through accessors so the original example needs tr/{}/()/