Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my $input = <STDIN>;
    chomp $input;
    exit if $input eq 'e' or $input eq 'E';
    
  2. or download this
    exit if $input =~ /^e$/i;