in reply to Wrapping HTML "sections" with a div
If you don't want specialized modules , you can split on empty lines using $/ and regex-match a <h2> at the start.
You should know how to do it.
Nope, the example input was misleading.
My suggestion is: use an HTML module.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wrapping HTML "sections" with a div
by nysus (Parson) on Oct 25, 2018 at 18:04 UTC |