in reply to Net::FTP Won't Log In, But Does the Second Time
Turns out that the issue had absolutely nothing to do with Net::FTP, but that $dom didn't contain what I thought it did. :)