Ok, what im trying to do is get mech to submit a form return a captcha form me to input and then continue submitting the captcha. I got this to work through the console but im trying to get it to work through the browser with cgi. Now my problem is after i input the captcha i loose all the information stored in the $mech object. Ive spent hours (newb) fiddling with HTTP::Cookies but so far i only managed to save it to a file and not sure if its even the right cookies. So i read some more and found out it might be possible to dump the whole $mech object to a file and load it later i guess with using YAML. Actually i just tried
And it worked it saved everything that was in the $mech now how do i load this for further use? or is there an easier method of accomplishing what im trying to do?