Ben Crane wrote: > > Hi all, Hello,
> Sorry, should have added this to my last email. Does > anyone know how to pass values to a perl script > through the command line? Do you use param as in CGI > scripting/ > > I want a user to be able to specify certain parameters > for the perl script (in case they want to run an > overnight scheduler on it). > > Eg. testscript.pl /? gives you help or testscript /a > gives you another capability... If you want to use the DOS command line switch (/) you could write your own parser for the @ARGV array however Perl provides the Getopt::Std and Getopt::Long modules which use the more standard '-' and '--' for processing command line switches. perldoc Getopt::Std perldoc Getopt::Long John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>