How to determine of text matches?
From: nospam (no_at_spam.com)
Date: 08/22/04
- Previous message: Mav: "Re: Catch pid for a process that created"
- Next in thread: Joe Smith: "Re: How to determine of text matches?"
- Reply: Joe Smith: "Re: How to determine of text matches?"
- Reply: nobull_at_mail.com: "Re: How to determine of text matches?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 21 Aug 2004 19:17:04 -0400
In the code fragment below, I'm doing a substitution
of the key/value pairs in a hash using s/$key/$value/g;.
How can I determine if a match is found? I want to do
something like:
If (match found) {
print "FOUND MATCH";
}
-Thanks
#############################
return unless -T;
print "Processing==> $File::Find::name\n";
my $obj = tie(my @array, 'Tie::File', $_) || die "$!\n";
for (@array) {
while ((my $key, my $value) = each %strings) {
s/$key/$value/g;
}
}
untie @array;
- Previous message: Mav: "Re: Catch pid for a process that created"
- Next in thread: Joe Smith: "Re: How to determine of text matches?"
- Reply: Joe Smith: "Re: How to determine of text matches?"
- Reply: nobull_at_mail.com: "Re: How to determine of text matches?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|