in reply to Re: Perl Polyglot Problem
in thread Perl Polyglot Problem

Your copy of warnings is broken and hers is working? Try to test it.
The first line (@rem=...)is executed with warnings not turned on, warnings only get turned on when the compiler gets past the use warnings; statement. It seems that her installation has warnings turned on by default.
Also, you should contact perl5-porters about adding %~dpnx0 to pl2bat instead of just -S %0
%0 is appropriate for .bat files, because that works on Windows 95 et al. Only Windows NT and descendants support the %~ syntax, but I am confident that my scripts won't need to run on Windows 95/98/Me.

Replies are listed 'Best First'.
Re^3: Perl Polyglot Problem
by PodMaster (Abbot) on Mar 09, 2005 at 17:47 UTC
    It seems that her installation has warnings turned on by default.
    Wasn't that apparent before? I doubt the actual installation has warnings on by default. She's probably invoking csvsplit.cmd directly with perl (perl -w csvsplit.cmd) or she has a a perl.bat in her path which invokes perl.exe -w or something silly like that ...
    %0 is appropriate for .bat files, because that works on Windows 95 et al. Only Windows NT and descendants support the %~ syntax
    pl2bat already differentiates between 9x and NT, so the users of NT should have the benefit of not searching %PATH% again :)

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      I'm sure that she didn't have Perl installed already, and she admitted to knowing nothing about perl, so wouldn't be running it herself. I even had to provide instructions on how to start a Command Prompt!