in reply to A quick Getopt::Long question
I agree with philcrow's answer; but here's an alternative which is more like how I'd write it.
my $sub_to_run = \&main; GetOptions( 'striphtml!' => sub { $sub_to_run = \&striphtml } ); $sub_to_run->(); [download]