Easy:
for my $line (split /\n/, $content){ # Insert your code here }
Personally, I prefer to slurp HTML into a single string and then use regexes to do whatever I need to it. HTML entities are often split across multiple lines, so treating it line-wise is problematic.
-- Education is not the filling of a pail, but the lighting of a fire. -- W. B. Yeats
In reply to Re: Parsing variable
by oko1
in thread Parsing variable
by Sterh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |