What you have pairs up 'h=s' with a reference to the result of evaluating error_detect("h"). Try
(note the ampersand).'h=s' => \&error_detect("h"),
the lowliest monk
In reply to Re: how to make -h optional in GetOpt::Long
by tlm
in thread how to make -h optional in GetOpt::Long
by bahadur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |