#!/usr/bin/perl -w use strict; use Getopt::Long; my $fVal = 0; GetOptions( f => \$fVal, ) # if "-f" is used, this will print "1" else "0" print "$fVal\n";
In reply to Re: Getopt::Long result issue
by perlfan
in thread Getopt::Long result issue
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |