- or download this
die unless ( $answer eq 'Y' or 'y' );
- or download this
die unless ( ($answer eq 'Y') or ('y') );
- or download this
$ perl -MO=Deparse,-p -e 'die unless ( $answer eq "Y" or "y");'
((($answer eq 'Y') or 'y') or die);
-e syntax OK
- or download this
> my $answer = "y";
y
...
> say "true" if $answer eq 'N' | 'n';
Nil
>