develooper Front page | perl.moose | Postings from February 2009

Attribute reset

Thread Next
Matthew Persico
February 4, 2009 21:40
Attribute reset
Message ID:
given this fragment

has 'mylist' => (isa => 'ArrayRef', default => sub { [] });

at a point in my code later on I want to clear it to reset it so I do


Is there anyway I could invoke the default? Something like



Matthew O. Persico

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About