hi,

the following code gets the page first and then prints the message "intializing" although it's written the other way.

use warnings;
use strict;
use WWW::Mechanize;
my $agent = WWW::Mechanize->new();
print "intializing";
$agent->get('http://www.thecityvibe.com/forum/');
die "Can't even get the home page: ", $agent->response->status_line
               unless $agent->success;

I want first to see the message and then to get the page.

Generally I have problems when I use mechanize with the print function. I get all the prints when mech is done. What's wrong?
Widows 2003 Server, active perl.

Reply via email to