in reply to Re^4: UrlLib and urllib2 python to perl
in thread UrlLib and urllib2 python to perl

To start with

use Web::Magic

Should be

use Web::Magic;

Secondly this module has a huge list of dependancies, including for some reason Acme::24. If all you're looking to do is automate some other web interface consider the alternatives mentioned in the first link you were given, for exmaple WWW::Mechanize. You also seem to have logged out.