quick and dirty:
my $vmname = shift;
my $vm = Vim::find_entity_view(view_type => 'VirtualMachine', filter => {'name' => $vmname}, properties => ['name','runtime.powerState','config']);
my $config = $vm->{'config'};
print $vm->{'name'}, "\t", $config->{'files'}->{'vmPathName'}, "\n";