Upon further testing it appears the error I am receiving is with the 2nd suggested command:
my $vm_name = "test_vm_template"
my $vm = Vim::find_entity_view(view_type => 'VirtualMachine', filter => {'name' => $vm_name});
print "vm name = " . $vm->name . "\n";
$pool_moref = $vm->{'resourcePool'};
$pool = Vim::get_view(mo_ref => $pool_moref);
print "resource name = " . $pool->name . "\n";
The error is happening on line #5.