Help for this page

Select Code to Download


  1. or download this
    while ( my ( $k, $v ) = each %opts ) {
        for ($k) {
    ...
            else        { die "*** BUG: no handler for -$k.\n"; }
        }
    }
    
  2. or download this
    while ( my ( $k, $v ) = each %opts ) {
        state %dispatch = (
    ...
        die "*** BUG: no handler for -$k.\n" if !exists $dispatch{$k};
        &{$dispatch{$k}};
    }