yoda54 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use warnings; use Getopt::Long; my ($test); my $a = "1"; GetOptions( "test" => \$test); \$test->() if ($a > 0); if ($test) { print "Running test.....\n"; }
20040801 Edit by davido: Changed title from '378775 : Simple question'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getopt configuration
by jdporter (Paladin) on Jul 30, 2004 at 18:54 UTC | |
|
Re: Getopt configuration
by davorg (Chancellor) on Jul 30, 2004 at 18:55 UTC | |
by yoda54 (Monk) on Jul 30, 2004 at 20:46 UTC | |
|
Re: Getopt configuration
by ysth (Canon) on Jul 30, 2004 at 18:58 UTC | |
|
Re: Getopt configuration
by pbeckingham (Parson) on Jul 30, 2004 at 19:30 UTC | |
|
Re: Getopt configuration
by NetWallah (Canon) on Jul 30, 2004 at 20:03 UTC |