in reply to Need to fill password in with perl on Javascript?
That dialog sounds like HTTP basic authentication. See the credentials method in WWW::Mechanize to deal with that.