Help for this page

Select Code to Download


  1. or download this
    use Scalar::Util qw( looks_like_number );
    use List::Util qw( first );
    ...
    if ( !defined $picked ) {
        die "What do you mean by '$input'?";
    }
    
  2. or download this
    use Scalar::Util qw( looks_like_number );
    use List::Util qw( first );   
    ...
    
    # "call" the menu item
    $picked->{handler}->();