in reply to Re: Repeating the same command in different portions of input
in thread Repeating the same command in different portions of input
It really helps, thanks.
I was wondering. I see that $chunk->text doesn't preserve the new line at the end of each word. Since I need to check stuff that are in lines (I did simply my code a little in the previous example) I was wondering if I could do something like these:
for my $chunk ( $dom->find('s')->each ) { my @values = split('\n', $chunk); foreach $line (@values) { do stuff on every line } }
I'm trying it right now. I hope it works.
Thanks again!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Repeating the same command in different portions of input
by Kenosis (Priest) on Jan 15, 2013 at 21:03 UTC |