in reply to Re^2: Command line switches with Perl2Exe
in thread Command line switches with Perl2Exe

Okay I answered my own question eventually.
For any other new folks - it looks like the module Getopt::Std will do the trick.
  • Comment on Re^3: Command line switches with Perl2Exe

Replies are listed 'Best First'.
Re^4: Command line switches with Perl2Exe
by Corion (Patriarch) on Nov 09, 2007 at 13:36 UTC

    Basically, command line parameter/switch handling is no different under Perl2Exe than it is under Perl itself (perl.exe). All command line parameters are collected in the @ARGV array and there are modules like Getopt::Long that help you conveniently separate switches, values and parameters.

    Personally, I discourage you from using Getopt::Std, because it was written by TheDamian for his book Perl Best Practices and has seen no widespread use outside of that. 1 Getopt::Long, together with Pod::Usage is what I use to handle documentation and command line switches.

    Update: 1 I was thinking of Getopt::Euclid resp. Class::Std, neither of which are recommendable IMO.