Help for this page

Select Code to Download


  1. or download this
    local $_;
    do {
        do {
    ...
            chomp( $_= <STDIN> );
        } until(  /\S/  );
    } until(  'FALSE' eq cmd_select( split ' ' )  );
    
  2. or download this
    local $_;
    do {
        print "> ";
        chomp( $_= <STDIN> );
    } until(  /\S/  &&  'FALSE' eq cmd_select( split ' ' )  );
    
  3. or download this
    local $_;
    do {
        do {
    ...
            chomp( $_ );
        } until(  /\S/  );
    } until(  'FALSE' eq cmd_select( split ' ' )  );
    
  4. or download this
        lots of work to get next thing;
        # possibly giving up for any of several reasons
        goto TOP   if  thing isn't interesting;
    ...
        }
        finish up;
        return result;
    
  5. or download this
    sub get_next_interesting_thing {
        do {
            return   if  ! get_next_thing;
    ...
    } while(  get_next_valid_thing  );
    finish up;
    return result;