Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Why does this not work? - Can't call method on an undefined value!!!

by graff (Chancellor)
on May 07, 2013 at 02:31 UTC ( #1032428=note: print w/replies, xml ) Need Help??

in reply to Why does this not work? - Can't call method on an undefined value!!!

VMware is a topic about which I know virtually nothing. But apart from that...

Your code is using modules that don't currently exist on CPAN. Are you using home-grown modules? If so, then you'll have to look more closely at your own local code base for "VMware::VIRuntime" (assuming it's documented), to see whether that helps to figure out what the problem is.

If you're using modules that used to exist on CPAN, then you should probably look for more recent modules that are currently supported (and might do a better job in terms of what you want to get done).

Having just browsed CPAN for "VMware" and related things, I noticed that the "See Also" sections of some modules make reference to other modules (like "VMware::VmPerl") that seem to have gone missing, so this is probably a somewhat volatile domain in terms of CPAN module life-spans.

But maybe the CPAN results for "VmWareESX" might be relevant? (I wouldn't have a clue whether they are or not.)

  • Comment on Re: Why does this not work? - Can't call method on an undefined value!!!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032428]
[ovedpo15]: another question about regex. if I have a string like this: "a/b/,c/d/e,5" I would like to remove the string after the last comma so the output will be "a/b/,c/d/e" how to do so?
[Corion]: ovedpo15: You could split on comma, and then join everything together, except the last part. Or you could match and make sure that the last part has no comma, like qr!,[^,]+$!, or you could use rindex.
[ovedpo15]: But I don't know the length of the string. will it still work?
[ovedpo15]: The only thing I know is that there is a comma at the end and a value after that
[hippo]: Try it and see. Your computer won't explode.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-05-27 10:33 GMT
Find Nodes?
    Voting Booth?