Help for this page

Select Code to Download


  1. or download this
    if   ( ""    =~ /^\Q$answer/i ) { default()     }
    elsif( "YES" =~ /^\Q$answer/i ) { affirmative() }
    elsif( "NO"  =~ /^\Q$answer/i ) { negative()    }
    
  2. or download this
    SWITCH: {
        $answer =~ /^yes|y$/ && do { affirmative(); last SWITCH; };
        $answer =~ /^no|n$/  && do { negative(); last SWITCH;    };
        default();
    }