Help for this page

Select Code to Download


  1. or download this
    use IO::Prompt::Hooked;
    
    ...
      message  => 'Input a string:',
      validate => sub { q{} ne shift }
    );
    
  2. or download this
    my $string = prompt (
      message  => 'Input a string:',
      validate => qr/./
    );