Re: Parsing HTML for SPSS

2001-11-27 Thread Chris Ball
On Tue, 2001-11-27 at 22:22, Pete Emerson wrote: > So for example, if I have > Strongly Agree I'd use HTML::TokeParser, because it's lovely. Assuming you initialise a new TokeParser object to $p, try: my %option_choice; # for each , if there's a 'name=' token, initialise a hash of: # the name

Parsing HTML for SPSS

2001-11-27 Thread Pete Emerson
I am parsing an HTML page which has forms on it. I think maybe this belongs here instead of cgi-beginners? (Note, I'm parsing the form source, not the form results!) I am trying to extract the variable names as well as their labels so that I can write out an SPSS file which maps variable names t