getopts("n:f:hc",\%option); if (!$option{n} && !$option{f}) { help(); exit; } sub help { print< -f -h print this help page EOF }