Changeset 15068 for gsdl/trunk/perllib/cfgread4gs3.pm
- Timestamp:
- 2008-03-07T13:47:19+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/cfgread4gs3.pm
r14944 r15068 118 118 my $desid = $_{'desid'}; 119 119 my $assigned = $_{'assigned'}; 120 my $lang = $_{'lang'}; 120 121 121 122 #@ Marking repeated block … … 246 247 push (@{$data->{'flaxActivity'}->[$currentIndex]}, 'desid'); 247 248 push (@{$data->{'flaxActivity'}->[$currentIndex]}, $desid); 249 } 250 251 if (defined $lang and $lang =~ /\w/) { 252 push (@{$data->{'flaxActivity'}->[$currentIndex]}, 'lang'); 253 push (@{$data->{'flaxActivity'}->[$currentIndex]}, $lang); 248 254 } 249 255 } … … 720 726 } 721 727 722 728 my $flaxActivities = $collectcfg->{"flaxActivity"}; 723 729 foreach my $fa (@$flaxActivities) { 724 if(defined $fa and @$fa[0] =~ /\w/ and @$fa[1] =~ /\w/ and @$fa[2] =~ /\w/ and @$fa[3] =~ /\w/ ) { 725 &write_line('COLCFG', ["<serviceRack ", @$fa[0], "=\"", @$fa[1], "\" ", @$fa[2], "=\"", @$fa[3], "\" />"]); 730 # Six elements of the array for three attribute name/value pairs: name, desid, and lang. 731 if(defined $fa and @$fa[0] =~ /\w/ and @$fa[1] =~ /\w/ and @$fa[2] =~ /\w/ and @$fa[3] =~ /\w/ and @$fa[4] =~ /\w/ and @$fa[5] =~ /\w/) { 732 &write_line('COLCFG', ["<serviceRack type=\"flaxActivity\" ", @$fa[0], "=\"", @$fa[1], "\" ", @$fa[2], "=\"", @$fa[3], "\" ", @$fa[4], "=\"", @$fa[5], "\" />"]); 726 733 } 727 734 }
Note:
See TracChangeset
for help on using the changeset viewer.