becomes@snort =("large","packet","bad","traffic","inbound","attempt","web", +"IIS","cmd.exe","cgi","access","multiple","decode");
@snort = qw(large packet bad traffic inbound attempt web IIS cmd.exe cgi access multiple decode);
my @watcher = ( \@pix, \@denies); ... my @global = @{$watcher[$i]};
should be (before using references correctly...)if($global[$x]=~/ZSP/i){ @ret=split(/ZSP/,$global[$x]); $global[$x]=""; $global[$x]=join(' ',@ret); }
if (my @ret = split /ZSP/, $global[$x]) { $global[$x] = join ' ', @ret; }
foreach my $r (@spy) { if($input =~ /$r/i){ $findings .= ' ' . $r; $fn++; } }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In reply to Re: Clean Code - What a mess...
by dragonchild
in thread Clean Code - What a mess...
by PyroX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |