RE: [Perl-unix-users] Capturing an evaluated pattern matching

2004-03-31 Thread Francis Paulin
-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) =

RE: [Perl-unix-users] Capturing an evaluated pattern matching

2004-03-31 Thread Matt Schneider
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