append the Proxy IP in user agent object.
open(F,"IP.txt");
while(<F>)
{
my $ip=$_;
$ua->proxy('http', $ip);
}
close F;
More Related Contents:
- How can I convert my shell script to Perl? [closed]
- search using perl one liner within a file [closed]
- How to re-direct the contents to a file instead of printing it to terminal
- What’s the easiest way to install a missing Perl module?
- How do I use boolean variables in Perl?
- Doesn’t Perl include current directory in @INC by default?
- Why does my file content/user input not match? (missing chomp canonical) [duplicate]
- What is the best way to slurp a file into a string in Perl?
- Scalar vs List Assignment Operator
- How can I check if a Perl array contains a particular value?
- How do you capture stderr, stdout, and the exit code all at once, in Perl?
- How to fix a locale setting warning from Perl
- How can I fire and forget a process in Perl?
- How to change proxy settings in Android (especially in Chrome) [closed]
- What’s the best way to make a deep copy of a data structure in Perl?
- What is the difference between new Some::Class and Some::Class->new() in Perl?
- Iterating hash based on the insertion order?
- Why can’t I match my string from standard input in Perl?
- What’s broken about exceptions in Perl?
- Delete ClearCase Views Script
- How to pass a variable from a child process (fork by Parallel::ForkManager)?
- What’s the difference between single and double quotes in Perl?
- How do I get the full path to a Perl script that is executing?
- Perl subroutine arguments
- How to create recursive hash of hash ? (With unlimited deep)
- How can I call a shell command in my Perl script?
- Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)
- How do I lock a file in Perl?
- Why is the Switch module deprecated in Perl?
- How do I retrieve the terminal width in Perl?