batmanor has asked for the wisdom of the Perl Monks concerning the following question:
I started with just one field, {'Comments'} to catch unwanted html code and with your help it worked. Now I want to catch the code in the other fields as well, {'addr'} {'name'} so I came up with the following:
However, no matter what I write with or without html I get sent to the sub routine &html_message. What am I doing wrong?# If http or <a href= tags are present abort the message if ($FORM {'Comments'} || $FORM{'addr'} || $FORM{'name'} =~m/http|h +tml|HTML|A HREF|a href/i) { &html_message; }
Thanks in advance, David
Thank you all:chargrill hipowls ikegami lodin NetWallah
for your help!
batmanor
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: OR sequence
by chargrill (Parson) on Mar 21, 2008 at 22:18 UTC | |
by hipowls (Curate) on Mar 21, 2008 at 22:32 UTC | |
by ikegami (Patriarch) on Mar 21, 2008 at 22:39 UTC | |
Re: OR sequence
by ikegami (Patriarch) on Mar 21, 2008 at 22:38 UTC | |
Re: OR sequence (ARRAY ~~ /PATTERN/)
by lodin (Hermit) on Mar 21, 2008 at 22:58 UTC | |
Re: OR sequence
by NetWallah (Canon) on Mar 21, 2008 at 23:10 UTC | |
Re: OR sequence
by apl (Monsignor) on Mar 22, 2008 at 15:13 UTC | |
by Arunbear (Prior) on Mar 22, 2008 at 16:58 UTC |
Back to
Seekers of Perl Wisdom