Search results for "dist:Perl6-Attributes attributes"
Perl6::Attributes - Perl 6-like member variable syntax
I found myself annoyed when I wrote the following code in one of my recent projects: sub populate { my ($self, $n) = @_; for (1..$n) { push @{$self->{organisms}}, Organism->new(rand($self->{width}), rand($self->{height})); } } Three $selfs in one lin...
LPALMER/Perl6-Attributes-0.04 - 17 Sep 2005 01:46:15 UTC