in reply to Dounds with "if" statement

In some cases probably more readable:

my $response = "\a site nao vulneravel!!!\n\n"; if ($resul =~ /xss/) { $response = "\a site vulneravel!!!\n\n"; }

A matter of taste.

Regards
McA