- or download this
print "RULE_FILE : $rulefile \n";
- or download this
my $rulesdir = "C:\\Snort\\rules\\*.rules";
- or download this
my $rulesdir = "C:\\Snort\\rules\\";
- or download this
my $rulesdir = "C:/Snort/rules/";
- or download this
@rulefiles = `ls $rulesdir\/*.rules`;
- or download this
my $rulesdir = "C:\\Snort\\rules";
my @rulefiles = glob "$ruledir/*.rules";
- or download this
for my $rulefile (@rulefiles){
open my $INFILE, "<", $rulefile or die "Can't open $rulefile $!";
my @rules = <$INFILE>;
close $INFILE;
}