develooper Front page | perl.perl5.porters | Postings from April 2000

problems with perlcc under Win32

April 20, 2000 12:52
problems with perlcc under Win32
Message ID:

From: John Dlugosz

Problem 1, a true bug:

The temp directory name is fetched containing a backslash character.  This
gets interpolated into a temp script, and generates the incorrect name when
the script is then processed.

The fix:

Add this line to _getSharedObjects

        my $tempdir= File::Spec->tmpdir;
        $tempdir =~ tr[\\][/];      # backslash not handled right.
             This line added

Problem 2, arguably a defect

Filenames with spaces in them fail miserably.  The name in ^X and the
filename are simple enough to add quotes around, but the @INC value needs
more processing.  The former is easy to fix, the latter I've not poked into
yet. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About