Hello,

At last I think I have the opportunity to contribute to PAR !

in the pp script, in the _name2moddata subroutine :

sub _name2moddata {
   my ($name, $mod, $dat) = @_;
   if ($name =~ /^[\w:]+$/) {
       $name =~ s/::/\//g;
       push @$mod, "$name.pm";
   }
   elsif (/\.(?:pm|ix|al)$/i) {
       push @$mod, $name;
   }
   else {
       push @$dat, $_;
   }
}

I really think the line : [ push @$dat, $_; ] should be [ push @$dat, $name; ].

This bug prevents from adding data files to par archives and stand-alone executables using the -M option of the pp command.

Karl Forner
GENSET



Reply via email to