Hey guys (and gals)...
not used a lot of Perl before, but I've got to maintain a piece for someone. I'm looking at a line which seems to have a fault:
if ($_ =~ /^ERROR/ && $_ =~ /$month $day/){push @errors, $_}
the line of the file it is trying to match would look like ERROR: tablename - Description of the error Fri Oct 26 10:12:41 2007
but I don't have any matches when it's clearly there.
hope you can help guys,
Regards,
A
p.s. $month and $day are created by means of:
my $date = localtime;
my @fields = split /\s+/, $date;
my $year = pop @fields;
my $month = $fields[1];
my $day = $fields[2];