packetstormer has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I have a very small, standard connection to website that gets the value of an input field. I can get the value and print it fine, but I cannot assign it to a variable!!! Can anyone see why this is:
Can anyone see why this might be!?.... my $mech = WWW::Mechanize->new(agent => 'Windows IE 6'); my $url = "https://www.somesite.com"; $mech->get($url); # This next line prints, to screen, the value as expected print "Value: " . $mech->field('sessionid'); # These next 2 lines prints nothing! my $sessionid = $mech->field('sessionid'); print "$sessionid\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: WWW::Mechanize input value
by Athanasius (Archbishop) on Aug 04, 2012 at 14:40 UTC |
Back to
Seekers of Perl Wisdom