my %h = (); GetOptions (\%h, 'length=i'); # will store in $h{length} #### $h{'max_probs'} = 150 unless (exists $h{'max_probs'});