#!/usr/bin/perl &init_labels; &fixinfo; sub init_labels { open(LABELS, "labels.pl"); ; ; ; ; while () { @words = split(/\//); $key = @words[1]; $_ = ; @words = split(/\|/); $node = @words[1]; chop($node); if ($key =~ /..*/) { $label{$key} = $node; } ; ; } close(LABELS); } sub fixinfo { open(INFO, "wave/misc/wave.inf"); while () { if ($_ =~ /:.*:%*%/) { @words = split(/%/); $key = @words[1]; print "@words[0]url_view /usr/help/html/wug/$label{$key}\n"; } else { print $_; } } close(INFO); }