• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 457
  • Last Modified:

Win32::Process, GetProcessId() not being acknowleged...

Hey !   Has anyone had any problems using Win32::process ?
Specifically, when I try something like

                                "start /m perl " . $command,
                                ".")|| die ErrorReport();
         $pid = $ProcessObj->GetProcessId() ;

It complains :

Your vendor  has not defined Win32::process macro GetProcessId, used at inv.pl blah blah blah.

To which I can only observe :

Wasssssssssssssssssup ????
1 Solution
Try this:

$pid = $ProcessObj->GetProcessID();

Instead of this:

$pid = $ProcessObj->GetProcessId();

-- Case-sensitivity.  Got to love it. ;-)
klestesAuthor Commented:
Thanks clockwatcher !

Now if only those damn voices would stop saying "you did use the -w flag, didn't you ?"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now