in reply to Why does this happen?
Try this instead:
Hmmm... can't we precompile these three items, incase they're used often?#!/usr/bin/perl -w use strict; print "What is your insult? "; chomp(my $input = <>); my @matching = qw/disk duck deck/; foreach $j (@matching) { die "bastard\n" if($input =~ /$j/); }
--
$Stalag99{"URL"}="http://stalag99.keenspace.com";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why does this happen?
by grinder (Bishop) on Apr 04, 2001 at 12:36 UTC |