Thanks for the comments and investigation.
The ".bat" wrapper is used because XP/NT (and possibly still Vista) don't always redirect STDIO/STDOUT correctly for scripts executed through file associations (see http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/faq/Windows/ActivePerl-Winfaq5.html#STDIN_and_STDOUT_and_Piping_don and http://support.microsoft.com/kb/321788).
I used the "pack" because the example in Win32::API did so and I thought it might be there to fix the memory violations.
In reply to Re^4: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by Wyrdweaver
in thread Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by Wyrdweaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |