Help for this page

Select Code to Download


  1. or download this
    {
      my $input = '';
    ...
      }
    }
    print "It worked, of course.\n";
    
  2. or download this
    use IO::Prompt::Hooked;
    my $input = prompt(
    ...
      validate => qr/^c$/i,
    );
    print "It worked, of course.\n";
    
  3. or download this
    use IO::Prompt::Hooked;
    prompt(
    ...
      validate => qr/^c$/i,
    );
    print "If we're here, we know it worked.\n";