# suppose I have two options: percentage and active if (GetOptions(\%hash, 'percentage=i', 'active!')) { &do_something(); } # it will be enough if the user will enter: prompt> myprog -p 75 # and 75 will be inserted to the hash