Please try replacing if with while .
Or use list context @underlined= $text =~ //gs
Btw the /s will help . matching newlines.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Matching text between tags
by LanX
in thread Matching text between tags
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |