On 11/03/2003 23:23:46 perl-win32-users-admin wrote: [snip] > >However I have discovered that I cannot pass command line arguments to the >wperl script and this is very inconvenient. > [snip] > >wperl fails to see the command line if I use getopts() or if I just operate >directly against the ARGV array. >
That's odd, because perl.exe and wperl.exe are byte-for-byte identical except for offset 12C (run "comp perl.exe wperl.exe"). If you have the sources and look for WPERLEXE in win32/Makefile, you'll see that wperl.exe is created by copying perl.exe and changing the application type from console to windowed via exetype.pl Running this command wperl -e"$,=qq(...); print @ARGV" foo bar baz | more produces the expected foo...bar...baz Your problem might lie elsewhere. -- Csaba Ráduly, Software Engineer, Sophos Anti-Virus Email: [EMAIL PROTECTED], Tel: 01235 559933, Web: www.sophos.com Add live virus info to your website: http://www.sophos.com/link/vfeed _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs