Manipulating Associative Arrays

Manipulating Associative Arrays

# Now print them out in sorted order.

foreach $target (sort keys(%includes)) {

$count=1;

$dependencies = $includes{$target};

foreach $dependency (split(/ /, $dependencies)) {

print "[$target]:\n" if $count == 1;

print "\t$dependency\n"; $count++;

}

}

Previous slide Next slide Back to the first slide View Graphic Version