use strict;
use warnings;
use Getopt::Long;
my $message, $boolean;
GetOptions('message=s' => \$message, 'boolean' => \$boolean);
print $message . "\n";
print "The boolean -b option was set!\n" if defined $boolean;
print "The boolean -b option was not set!\n" if undef $boolean;
|