Okay, trying Getopt::Long... Running: "perl -s testOptions.pl --graphical"
produces... >< >< I'm expecting >< >1< #Code sample: use strict; use warnings; use diagnostics; use Getopt::Long; my $verbose = ''; # option variable with default value (false) my $graphical = ''; # option variable with default value (false) GetOptions ( 'verbose' => \$verbose, 'graphical' => \$graphical ); print ">", $verbose, "<\n"; print ">", $graphical, "<\n"; exit (0); If I remark out "use strict;" and the "my $verbose..." and "my $graphical..." lines, it will produce the expected results...however I don't want to exclude strict functionality... How do I pull in the option(s)? ~Robert -----Original Message----- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:30 AM To: Robert Smith; [EMAIL PROTECTED] Subject: RE: PerlApp and commmand line switches I use switches with my PerlApp .EXEs all the time. What are you using to handle the switches, GetOpt::XXX or a homegrown solution? -----Original Message----- From: Robert Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: PerlApp and commmand line switches Is there a way to feed a switch to a PerlApp generated .exe? I have a perl script that takes some command line arguments: For instance "perl -s myscript.pl -g -f" But when I generate a myscript.exe from PerlApp, the switches no longer function... i.e. "myscript.exe -g -f " A work around? Other applicable syntax? Thanks, ~Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]