use Opsview::RestAPI; my $rest=Opsview::RestAPI(); # equivalent to my $rest=Opsview::RestAPI->new( url => 'http://localhost', username => 'admin', password ...