I'm with Paul. The code looks right and no "issue" was defined. However, this line might be "wrong": my $content = get $url; A line I often use in my Mechanize using scripts is: my $content = $mech->response()->decoded_content()
Truth be told, I'm not familar with the 'get' function (is that the macro it tries setting up during mechanize install?), but $url is the login page, not the result of the filled in and submitted form. HTH