NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Class:Std (Score:1)
push @{ $self->{'files'} }, @more_files;
Re:Class:Std (Score:1)
Throwing in an extra arrow makes it look simpler? Strange definition of simpler. :-)
I like to preface my inside-out object methods with “
my $this = ident my $self = shift;”, btw, which makes that code into this:Of course Hash::Util::FieldHash [cpan.org]’s
idhashfunction will make that separate$thisunnecessary in 5.10 and you’ll be able to just write this:The real problem persists through all of these, though: that extra
@{}bracket.Reply to This
Parent
Re: (Score:1)
Re: (Score:1)
My reply swelled into a post of its own [perl.org].