Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Searching and printing between two chatacters in perl

HI Experts..

Im a beginner in perl,... im trying to print a paragraph between two key words after searching a key word

So this should search for "ooaijp01.intlb.net-pool" if it matches.. it should print a paragraph between a key word
below is the input... could you please help me how do i achive this..

pool {
name "ooaijp01.intlb.net-pool"
ttl *
preferred ***
alternatkke **
fallback *****
fallback_ipv4 ****
partition "Common"

member *****
member *******
}

pool

I have tried with the below on.. but it's not working..

#!/usr/bin/perl

open my $fh, ';
}
}

thanks in advance..
1 person has
this question
+1
Reply