#!/usr/bin/perl -w use strict; print "What is your insult? "; chomp(my $input = <>); my @matching = qw/disk duck deck/; for (@matching) { if ($input eq $_) {die "bastard\n"}; }