How about something like this:
open(T,"test.html") || die ("Unable to open file. $!\n"); while(<T>) { # preprocessing with s/.../ as above if (/^;Town/) { $town = <T>; chomp $town; $town =~ s/;//g; print "Found a town: $town\n"; } }
Note, I've only tested this very quickly. It could probably do with better error handling etc...
In reply to Re: Re: Re: HTML Formattting
by muntfish
in thread HTML Formattting
by minixman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |