#!/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'
In reply to Getopt configuration by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |