Quote:
Originally Posted by u-Bob
ugly, but it'll work... and less memory intensive than splitting the file:
Code:
open(FILE, 'stuff.txt');
$h3 = 0;
while(<FILE>)
{
chomp;
if($_ =~ "<h3>"){$h3++; if($h3 > 1){close FILE;} }
else{print "$_\n";}
}
close FILE;
|
foirgot to mention i wanna specify the links based on the h3 tag so <h3>payment links</h3> would grab those links under that h3 element ;)