PhilHibbs has asked for the wisdom of the Perl Monks concerning the following question:
This runs as a batch, and line 3 calls perl with the batch file's full drive, path, name, and extension (that's the %~dpnx0) as the first parameter, and then all other parameters appended after.@rem = '--*-Perl-*-- @echo off perl "%~dpnx0" %* goto endofperl @rem '; #!perl #line 8 use strict; use warnings; # perl code goes here __END__ :endofperl
She reported back to me that after installing ActiveState Perl 5.8.1.807, she gets the following error:
I experimented on my machine, and I could make it do this by putting -w in the perl statement on line 3, and then fix it again by putting -wx in, so I advised her to put -x in the call thus:Name "main::rem" used only once: possible typo at E:/.../csvsplit.cmd +line 1.
Any ideas why her installation gives this error, and mine (same ActiveState version) doesn't?perl -x "%~dpnx0" %*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Polyglot Problem
by PodMaster (Abbot) on Mar 09, 2005 at 13:00 UTC | |
by PhilHibbs (Hermit) on Mar 09, 2005 at 15:27 UTC | |
by PodMaster (Abbot) on Mar 09, 2005 at 17:47 UTC | |
by PhilHibbs (Hermit) on Mar 09, 2005 at 18:16 UTC | |
|
Re: Perl Polyglot Problem
by Mugatu (Monk) on Mar 09, 2005 at 18:54 UTC |