[Gllug] Perl Question - Spam Filter for NMS Form Mail

David Damerell damerell at chiark.greenend.org.uk
Mon Feb 9 18:36:40 UTC 2009


On Saturday, 7 Feb 2009, Henry Gilbert wrote:
>If any of you is proficient in Perl and can help me out with this, I
>would be extremely grateful.

Well, without commenting on the prudence of what you are trying to do,
why not;

if ((nasty_condition_one) or
    (nasty_condition_two) or
    (nasty_condition_three)) {
 print "Location: http://www.google.com\n\n"; exit;
}

"man perlretut" and "man perlre" should make exercises like checking
for "://" simple.

-- 
David Damerell <damerell at chiark.greenend.org.uk> Kill the tomato!
Today is First Wednesday, February.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list