Simple options : Getopt « System Functions « Perl
- Perl
- System Functions
- Getopt
Simple options
use Getopt::Long;
GetOptions("german" => \$german,
"french" => \$french);
if ($german) {
print "Guten Tag!\n";
}
if ($french) {
print "Bonjour!\n";
}
if (!$german && !$french) {
print "Hello!\n";
}
Related examples in the same category