if (-1 == index($FORM{'comments'}, 'http') or -1 == index($FORM{'comments'}, 'www') ) { # ... mach was }