in reply to creating a useful browser from automation

system( 'run C:\Program Files (x86)\Google\Chrome\Application\chrome.e +xe', ...
And if you remove that "run"?

Replies are listed 'Best First'.
Re^2: creating a useful browser from automation
by Aldebaran (Curate) on Sep 07, 2015 at 23:33 UTC

    Works fine! I picked up the run syntax from an old pm node and thought it was necessary. I'll just have to add that to the list of misconceptions I had in this thread...

    #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; use HTML::Display; $ENV{'PERL_HTML_DISPLAY_COMMAND'}='"C:\Program Files (x86)\Google\Chro +me\Application\chrome.exe" %s'; my $base_url = 'https://www.huntington.com/'; my $spider = WWW::Mechanize->new( autocheck => 1 ); $spider->get( $base_url ); die( "$base_url: " . $spider->response->status_line ) unless $spider-> +success; my $browser = HTML::Display->new(); $browser->display( html => $spider->content( base_href => $base_url ) +); __END__