in reply to Re^2: Can't call method "proxy" on an undefined value at
in thread Can't call method "proxy" on an undefined value at
You are redefining "my $prx", which was previously a file handle.
You are assigning an un-initialized $_ to $prx.
Perhaps you meant it to look something like this:
my $ua = LWP::UserAgent->new; $ua->agent('Mozilla/8.0'); for my $p (@prx){ print "Current proxy:$p\n"; $ua->proxy(['http'], $p); # Use this UA/Proxy to fetch something.... }
...The words of the Prophets are written on the Facebook wall.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't call method "proxy" on an undefined value at
by Anonymous Monk on Feb 09, 2016 at 06:32 UTC | |
by NetWallah (Canon) on Feb 09, 2016 at 06:50 UTC | |
by Anonymous Monk on Feb 09, 2016 at 07:27 UTC | |
by poj (Abbot) on Feb 09, 2016 at 12:20 UTC | |
by Anonymous Monk on Feb 09, 2016 at 14:22 UTC | |
|