Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Jeff 'japhy' Pinyan
On Nov 25, sulfericacid said: >#!/usr/local/bin/perl -w > >my %form; >my $content; > >my $userurl = $form{'userurl'}; Where do you think %form gets populated? You want to use the CGI.pm module: use CGI 'param'; my $userurl = param('userurl'); >print "Content-type: text/html\n\n"; > >use di

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread sulfericacid
Ok, late last night I realised the semi colons were missing among a few other small details. Since then I repaired all of them and ran a debbuger, but it came back clean. I uploaded and tried to run it on the webserver, but it doesn't print anything. The script doesn't display any errors or logf

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Ovid
--- sulfericacid <[EMAIL PROTECTED]> wrote: > use HTML::TokeParser > my $p = HTML::TokeParser->new(\$content); > > my %meta; > while (my $token = $p->get_token) { > next unless $token->[1] eq 'meta' && $token->[0] eq 'S'; > $meta{$token->[2]->{name}} = $token->[2]{content}; > } >

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Bob Rasey
On Mon, 2002-11-25 at 11:30, Jeff 'japhy' Pinyan wrote: > On Nov 24, sulfericacid said: > > >use LWP::Simple > >use HTML::TokeParser > > You're missing semi-colons after those two 'use' statement.s And while you're at it: $username =~ s/e/u/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Jeff 'japhy' Pinyan
On Nov 24, sulfericacid said: >use LWP::Simple >use HTML::TokeParser You're missing semi-colons after those two 'use' statement.s -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ what does

HTML::TokeParser/Parsing problem

2002-11-25 Thread sulfericacid
I just joined this newgroup so if I am posting in the wrong place, please let me know nicely rather than bashing me for the inexperience ALL of you once had. I have a problem with my script listed below. Any help would be GREATLY appreciated!! sulfericacid The errors I receive are: 1 Un