ansh batra has asked for the wisdom of the Perl Monks concerning the following question:
the data i have is
<div class='PlayVideo'></div> A8A <div class='RadioButtonClipStyle'>
i want to fetch A8A. can you guyz tell me where i am going wrong?foreach $l(@lines) {#traversing the file if($line=~ /<div class=\'PlayVideo\'><\/div>\n(.*?)/) { $kb_layout_id=$&; print "$kb_layout_id\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: to get next line of pattern matched
by choroba (Cardinal) on Jan 07, 2013 at 09:39 UTC | |
|
Re: to get next line of pattern matched
by Anonymous Monk on Jan 07, 2013 at 09:04 UTC | |
| |
|
Re: to get next line of pattern matched
by 2teez (Vicar) on Jan 07, 2013 at 09:25 UTC | |
by ansh batra (Friar) on Jan 07, 2013 at 11:00 UTC | |
by marto (Cardinal) on Jan 07, 2013 at 11:02 UTC | |
by ansh batra (Friar) on Jan 07, 2013 at 11:04 UTC |