in reply to Need Help Refactoring Method Calls
sub _fill_lists { my ($thing, $thing_ref) = @_; my $class = "My::Class::$thing"; # + <== if (ref $giant_hash{$thing} eq 'ARRAY') { for (@{ $giant_hash{$thing} }) { push @{ $thing_ref }, $class->new( $_ ); # + <== } } else { push @{ $thing_ref }, $class->new( $giant_hash{$thing} ); # + <== } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need Help Refactoring Method Calls
by jffry (Hermit) on Jan 30, 2006 at 17:14 UTC | |
by rhesa (Vicar) on Feb 02, 2006 at 20:37 UTC |