in reply to Re: Perl Interpreter / OS problem
in thread Perl Interpreter / OS problem

All of the appropriate modules are installed on both machines. Excerpt of the code where it hangs up:
#perl.exe use strict; $|++; use WWW::Mechanize; my %seen; my $scraper = WWW::Mechanize->new(); my $mech = WWW::Mechanize->new(); my $home = <STDIN>; &main($home); sub main { my $line = shift; $scraper->get($line); my @LinkArray = $scraper->find_all_links(); if (defined @LinkArray){ my @urls = map { $_->[0]} @LinkArray; shift @urls if $seen{$line}++; foreach my $url(@urls){ print "\n", $url; ++$index_level; $scraper->get($url); next if $seen{$url}++; &followlink($url); } my $dest = shift @PublicLinks; &main($dest); return; }else{ return; } }
It gives me an "Cannot Pass an unidentified VALUE to an Array" error.

Replies are listed 'Best First'.
Re^3: Perl Interpreter / OS problem
by swaroop.m (Monk) on Aug 26, 2004 at 15:46 UTC
    Hi,
    If u r using XP home, Active Perl tries to configure .pl and .plx (to perl.exe ) for IIS which donot exist on XP home.May be becuase of this the Active Perl May not have got installed correctly . So , can u pls download perl source and built the perl on ur XP machine and try it !
    hope this helps !
    All Monks Pls correct me , if iam wrong .
    regards,
    Swaroop