in reply to PP packaging Mechanize problem
The perl script works fine, but the exe file doesn't so i'm guessing the problem is with packaging dependencies for the javascript support ?#!/usr/bin/perl use strict; use WWW::Mechanize; use WWW::Mechanize::Plugin::JavaScript; use WWW::Mechanize::Plugin::DOM; use HTTP::Cookies; use IO::Handle; open OUTPUT, '>', "output.txt" or die $!; open ERROR, '>', "error.txt" or die $!; STDOUT->fdopen( \*OUTPUT, 'w' ) or die $!; STDERR->fdopen( \*ERROR, 'w' ) or die $!; my $agent = WWW::Mechanize->new(); print "Test1\n"; $agent->use_plugin('JavaScript'); print "Test2\n"; exit;
|
|---|