Use open to open a file handle then use:
while (<IN>) {
to scan the file. Use index or a regular expression match to skip (using next) until the interface line is found. Skip until the description line is found:
/^description/ && last while <IN>; my $description = $_;
Process the description then use the same technique for the rest of the lines you need to match.
In reply to Re: match multi-lines from config file
by GrandFather
in thread match multi-lines from config file
by nidhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |