On Sun, Apr 27, 2008 at 12:11 PM, hotkitty <[EMAIL PROTECTED]> wrote: > I'm trying to extract links from a website but get the following > error: > > Global symbol "%Config" requires explicit package name at C:/Perl/lib/ > Errno.pm l
> > What am I doing wrong? It's hard for us to tell you what happened unless you tell us more details. For example, what Perl version are you using? What librarys have you installed on the host? from what environment did you execute the perl program (activestate or others)? > Here's the script (which I got from a YouTube > video...it seemed to work for him): No. If this is the original script, it can't work even for the author. You 'require strict' and 'use warnings' but for all variables, you didn't declare them with either 'my' or 'our'. Perl can't compile and execute it at all. > > #!/usr/bin/perl > print "Content-type: text/html\n\n"; > > use LWP::Simple; > require HTML::Parser; > require HTML::LinkExtor; > require strict; > use warnings; > > > $Domain = "ageofempires.co.nz"; > $URL = get("http://www.ageofempires.co.nz"); > I'd suggest you take some time learning perl and re-write the script by yourself. At that time if you still have questions, welcome back to ask us here. -- J. Peng - QQMail Operation Team eMail: [EMAIL PROTECTED] AIM: JeffHua -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/