$/ = 'next'; # read by chunks /edit "(\S+)".*set ip (\S+)/s and $ips{$1} = $2 while <DATA>;
Eeew ... next can occur anywhere in the data
edit "nextag" set vdom "second after next" set alias "third after next"
In reply to Re^2: Grabbing Structured multi line output from a file?
by Anonymous Monk
in thread Grabbing Structured multi line output from a file?
by symgryph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |