in reply to Re: Re: HTML Formattting
in thread HTML Formattting
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: HTML Formattting
by minixman (Beadle) on May 13, 2004 at 14:35 UTC |