Re: Need help with a question.
- From: "Erwin van Koppen" <invalid@xxxxxxxxxxxxxxx>
- Date: Sat, 28 Jun 2008 19:01:51 +0200
"Trev" wrote:
Thanks, I've made the changes and so far so good.
foreach $cpqlog (@cpqlog_data) {
{
chomp($cpqlog);
if ($cpqlog =~ /MAC/) {
$cpqlog =~ s/ <FIELD NAME="Subject" VALUE="//i;
$cpqlog =~ s/ <FIELD NAME="MAC" VALUE="//i;
$cpqlog =~ s/"\/>//i;
}
}
}
You do understand that the above code does not actually change anything in
the file, right? The substitutions in $cpqlog are just discarded at the end
of the loop.
Oh, and you might want to get rid of the superfluous { }'s...
.
- Follow-Ups:
- Re: Need help with a question.
- From: Jim Gibson
- Re: Need help with a question.
- From: Trev
- Re: Need help with a question.
- References:
- Need help with a question.
- From: Trev
- Re: Need help with a question.
- From: Erwin van Koppen
- Re: Need help with a question.
- From: Trev
- Need help with a question.
- Prev by Date: Re: Perl search engine
- Next by Date: Re: Need help with a question.
- Previous by thread: Re: Need help with a question.
- Next by thread: Re: Need help with a question.
- Index(es):
Relevant Pages
|