-unix-users] Capturing an evaluated pattern matching
I was able to get this to work by just doing normal regular expression
matching.
$stringFromFirstFile = "Test: trying to capture this part of the string";
$stringFromSecondFile = "^Test: (.*)";
($capture) =
I was able to get this to work by just doing normal regular expression matching.
$stringFromFirstFile = "Test: trying to capture this part of the string";
$stringFromSecondFile = "^Test: (.*)";
($capture) = $stringFromFirstFile =~ /$stringFromSecondFile/;
print "$capture\n";
Matthew Schneider