Perl: the Markov chain saw | |
PerlMonks |
Re: WWW::Mechanize input valueby Athanasius (Archbishop) |
on Aug 04, 2012 at 14:40 UTC ( [id://985438]=note: print w/replies, xml ) | Need Help?? |
Hello packetstormer, The WWW::Mechanize->field method is actually for setting the field value. Your first call sets the value of 'sessionid' to undef (since no second argument is supplied), and returns the previous value. Your second call gets the new, empty value. Use the WWW::Mechanize->value method instead. This gets the field value without the side effect of resetting it:
See WWW::Mechanize, under “FIELD METHODS.” HTH, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|