Kanishka has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use LWP::Simple; my @manfCode; my @next_lines; my $manf; my $counter = 0; open (MANFWORKFILE, 'C:\MyWork\OptionsDB\Belkin\Wizards\PdaConfig\manf_junk.txt'); while ( +defined($_ = <MANFWORKFILE>)){ if (/PDAConfigListModels\.asp/){ @manfCode = split(/manufacturerID\=/, $_); $manfCode[1] =~ s/\ +"\>//g; push @next_lines, scalar(<MANFWORKFILE>) if /PDAConfigListMode +ls\.asp/; $next_lines[$counter] =~ s/^[\s]+//; print $manfCode[1].$next_lines[$counter]; $manfCode[1] =~ s/\s+//; $counter ++; my $response = get("http://web.belkin.com/config/pda/PDAConfigListModels.asp? +sid=167240621&manufacturerID=$manfCode[1]"); open (INDEXFILE, '>C:\MyWork\OptionsDB\Belkin\Wizards\PdaConfig\model_junk.txt' +) or die ("Can't open out File: $!\n"); print INDEXFILE $response; clos +e INDEXFILE; } } close MANFWORKFILE;
20040818 Edit by ysth: change title from cookie ERROR?????
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uninitialized value error
by antirice (Priest) on Aug 18, 2004 at 04:38 UTC | |
|
Re: Uninitialized value error
by Kanishka (Beadle) on Aug 18, 2004 at 04:26 UTC | |
|
Re: Uninitialized value error
by cLive ;-) (Prior) on Aug 18, 2004 at 18:14 UTC |