Solved

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

Posted on 2000-03-30
2
433 Views
Last Modified: 2008-02-20
Hey !   Has anyone had any problems using Win32::process ?
Specifically, when I try something like

     Win32::Process::Create
                               ($ProcessObj,
                                "c:\\windows\\command\\start.exe",
                                "start /m perl " . $command,
                                0,
                                NORMAL_PRIORITY_CLASS,
                                ".")|| 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 ????
0
Comment
Question by:klestes
2 Comments
 
LVL 25

Accepted Solution

by:
clockwatcher earned 30 total points
ID: 2676627
Try this:

$pid = $ProcessObj->GetProcessID();

Instead of this:

$pid = $ProcessObj->GetProcessId();

-- Case-sensitivity.  Got to love it. ;-)
0
 

Author Comment

by:klestes
ID: 2680639
Thanks clockwatcher !

Now if only those damn voices would stop saying "you did use the -w flag, didn't you ?"
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cpan issue 1 65
Need help with bash and/or perl commands on OS X Terminal 9 110
remove duplicates from the csv file 13 115
Using Perl to parse rows 7 97
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question