PERL and Job Info Variables

Posted by: Phil Wills

PERL and Job Info Variables - 01/24/07 03:34 AM

Simple question and I'm sure there's a very simple answer somewhere out there ... In the same way one can set a job information variable using VBScript, is there a similar way to do it using PERL? i.e. I need the PERL equivalent of the VBScript statement "Watch.setJobInfo 9, variableName".

Thanks, Phil.
Posted by: Anonymous

Re: PERL and Job Info Variables - 01/24/07 08:47 AM

Hello,

Here is a link that has the syntax

http://www.objectiflune.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=47;t=000017#000000
Posted by: Phil Wills

Re: PERL and Job Info Variables - 01/24/07 09:01 AM

Thanks LAPD. I am familiar with the "$Watch->..." notation but nothing is documented anywhere regarding specific usage of it. The link you've supplied contains similar examples of the syntax but not what I'm looking for. I need the exact syntax to set a job information variable, i.e., is it something along the lines of "$Watch->SetJobInfo(9, variableName)"?

Thanks again, Phil.
Posted by: Philippe F.

Re: PERL and Job Info Variables - 01/24/07 10:45 AM

Phil,

The exact syntax for ActivePERL is
Code:
$Watch->SetJobInfo(9, "This is my new value")
Let's say you wanted to store in JobInfo 9 a value that is currently stored in JobInfo 8, you'd then use the following syntax:
Code:
$Watch->SetJobInfo(9, $Watch->GetJobInfo(8))
I hope this helps.
Posted by: Phil Wills

Re: PERL and Job Info Variables - 01/25/07 04:53 AM

Thanks, Philippe. Problem solved.