Is there anyway to better match a line that started with a dot from the begining to the end of the close parenthesis?Below is a sample from the file:
.upper_house3({located in east valley}) \\good neigbourhood
.upper_house1({located in east valley}) \\good neigbourhood
.upper_house2({located in east valley}) \\good neigbourhood
I tried using the code below but it won't work:
open (file, "c:\\text.txt");
while (<file>)
{
if ($_ = /^(\.upper_house3).*(\))/)
{
$good_location = $_;
print "$good_location\n";
}
}
.upper_house3({located in east valley}) \\good neigbourhood
.upper_house1({located in east valley}) \\good neigbourhood
.upper_house2({located in east valley}) \\good neigbourhood
I tried using the code below but it won't work:
open (file, "c:\\text.txt");
while (<file>)
{
if ($_ = /^(\.upper_house3).*(\))/)
{
$good_location = $_;
print "$good_location\n";
}
}