diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2005-07-08 16:49:30 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2005-07-08 16:49:30 +0000 |
commit | b7915758cd909d309b2c296516c0717a59f843a3 (patch) | |
tree | 9e8c31b429e7c1cc138f9bc85299f2e64dbd3998 | |
parent | 555afd597ca10c4952f95fd2205099e95bc840d7 (diff) | |
download | MPC-b7915758cd909d309b2c296516c0717a59f843a3.tar.gz |
ChangeLogTag: Fri Jul 8 11:47:37 2005 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | modules/ProjectCreator.pm | 11 |
2 files changed, 15 insertions, 3 deletions
@@ -1,3 +1,10 @@ +Fri Jul 8 11:47:37 2005 Chad Elliott <elliott_c@ociweb.com> + + * modules/ProjectCreator.pm: + + Modified code using a hash reference within a hash reference to + work correctly with Perl 5.6.1. + Thu Jul 7 14:05:44 2005 Chad Elliott <elliott_c@ociweb.com> * modules/MakeProjectBase.pm: diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm index 5d7ad3bc..0014571e 100644 --- a/modules/ProjectCreator.pm +++ b/modules/ProjectCreator.pm @@ -2465,9 +2465,14 @@ sub generate_default_components { ## files that are added are put at the front of the list. my($newgroup) = undef; my(@input) = (); - foreach my $name (keys %{$self->{$gentype}}) { - foreach my $key (keys %{$self->{$gentype}->{$name}}) { - push(@input, @{$self->{$gentype}->{$name}->{$key}}); + + ## If I call keys %{$self->{$gentype}} using perl 5.6.1 + ## it returns nothing. I have to put it in an + ## intermediate variable to ensure that I get the keys. + my($names) = $self->{$gentype}; + foreach my $name (keys %$names) { + foreach my $key (keys %{$$names{$name}}) { + push(@input, @{$$names{$name}->{$key}}); if ($key ne $defgroup) { $newgroup = $key; } |