$mech->get($add); my $img_obj = $mech->find_image( url_regex => qr{captcha\.php} ); $mech->get( $img_obj->url, ':content_file' => 'captchar.jpg' );