Im using HTTP::ProxyPAC module to get the proxy from pac file. but i get the error
"neither the JavaScript module nor the JS module seems to be available"
please let me know how to proceed. here is my code
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::ProxyPAC;
my $ua = LWP::UserAgent->new( keep_alive => 1);
my $pac = HTTP::ProxyPAC->new( URI->new ("http://pacfilelocation:8080/pac_file.pac") );
my $res = $pac->find_proxy("https://www.google.com");
if ($res->direct) {
print "No Proxy Needed\n";
} elsif ($res->proxy) {
print "Proxy is: " . $res->proxy . "\n";
$ENV{HTTPS_PROXY} = $res->proxy;
$ENV{HTTP_PROXY} = $res->proxy;
$ua->env_proxy;
}