M
Matt Williamson
Given the following, is there an easy way to preface the print $status,
"\n"; line with job started, job ended or job completion status? I've been
reading about about capturing in the blue camel, but I can't figure out if
or how to make it work.
foreach my $line (@content){
if ($line =~ /(?:job started|job ended|job completion status)/i) {
$line =~ /
.*)$/;
my $status = $1;
chomp $status;
for ($status) {
s/^\s+//;
s/\s+$//;
}
print |insert the status that matched above| $status, "\n";
}
}
TIA
Matt
"\n"; line with job started, job ended or job completion status? I've been
reading about about capturing in the blue camel, but I can't figure out if
or how to make it work.
foreach my $line (@content){
if ($line =~ /(?:job started|job ended|job completion status)/i) {
$line =~ /
my $status = $1;
chomp $status;
for ($status) {
s/^\s+//;
s/\s+$//;
}
print |insert the status that matched above| $status, "\n";
}
}
TIA
Matt