StrictHostKeyChecking is not one of the named parameters accepted by method "new". In such cases as mentioned in the documentation of Net::SSH::Perl you can pass value for that parameter using the options parameter. Say something like below would work:
my $ssh = Net::SSH::Perl->new("$server",
debug => 1, protocol => 2,
options=> ["StrictHostKeyChecking no"]);