Makemaker 6.44 (DIRFILESEP - bug !?) in MM_Win32.pm (windows) and simple code fix ...

[email protected] ("micberardi \(yahoo.it\)")
Newsgroups perl.makemaker
Message-ID <!&!AAAAAAAAAAAYAAAAAAAAAHt64hUey+JDrVnzqKaeZ/[email protected]>
the bad construction of DIRFILESEP path separator by Makefile.PL

persist also in last "activestate Perl 5.10" distribution

and last version updated version of ExtUtils-Makemaker (6.44) ,

and is related to:

 

..\Perl\lib\ExtUtils\MM_Win32.pm

 

Or/And (depend on install zone..):

 

..\Perl\site\lib\ExtUtils\MM_Win32.pm

 

 

I correct the code of this subroutine (in MM_Win32.pm):

 

 

sub init_DIRFILESEP {

    my($self) = shift;

 

my $make = $self->make;

 

# The ^ makes sure its not interpreted as an escape in nmake

#    $self->{DIRFILESEP} = $make eq 'nmake' ? '^\\' :

 

# above line fixed by Berardi Michele as:

     $self->{DIRFILESEP} = $make eq 'nmake' ? '\\\\' :

                          $make eq 'dmake' ? '\\\\'

                                           : '\\';

}

 

 

Hope this help.

 

Michele

 

---------------

Michele Berardi

System Developer

http://berardimichele.interfree.it <http://berardimichele.interfree.it/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.