my $ctn = shift; # cleanup the content of a macro call
$ctn =~ s/^\s*(.*)\s*$/$1/gs;
my @elms;
- print "ctn=$ctn\n" if $debug > 1;
+ print STDERR "ctn=$ctn\n" if $debug > 1;
if ($ctn =~ m/^(\w+)\s*,\s*(\w+)\s*,\s*"?([^"]*)"?$/s) {
# Perfect, we got 0->name; 1->anc; 2->desc
$elms[0] = $1;
my $data = "";
- print "Parse $filename\n" if $debug;
+ print STDERR "Parse $filename\n" if $debug;
open IN, "$filename" || die "Cannot read $filename: $!\n";
while (<IN>) {
$data .= $_;
$ancestor{$name}=$anc;
$desc{$name}=$desc;
- print " $name -> $anc\n" if $debug;
+ print STDERR " $name -> $anc\n" if $debug;
}
}
# Retrieve all the file names, and add their content to $data