getopts("hf:d:") || die HELP(); if ($opt_h) { HELP(); }