Re: Question/Problem with foreach loop

2011-06-07 Thread CM Analyst
Gents, Sorry for my delayed response. Thank you for your suggestions. Based on your feedback, I made the following changes, and the hook is now working as expected. Thanks a million! my $taskstate = $taskEntity->GetFieldValue(state)->GetValue();     $session->OutputDebugString ("Task's state

Re:

2011-06-06 Thread CM Analyst
http://cerclebalaguer.cat/indexz39X.php -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Question/Problem with foreach loop

2011-05-18 Thread CM Analyst
Hi, In this code, the intent is to iterate through the tasks and modify the ID field. The Task record (entity) should not be modified if it's state equals "Completed". When I run this routine, there are two problems: Problem 1) The "if" statement is not being evaluated. The record (even if it

Re: Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread CM Analyst
ot;CM Analyst" Date: Thursday, January 27, 2011, 6:03 PM Ok. Post sample from the log file to entire list. :) Cheers, Parag On Thu, Jan 27, 2011 at 4:02 PM, CM Analyst wrote: Yes, changiing to $line does not make a difference. On Thu Jan 27th, 2011 5:31 PM CST Parag Kalra wrote: &

Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread CM Analyst
Hello, In the following script my goal is pull the date value each time an error value (hardcoded) is found in the specified log file. The script retrieves the error value without a problem but I cannot seem get the date value. Can anyone tell me what I need to do? The error message when I run

Summary: Perl/Tk Help

2007-09-19 Thread CM Analyst
Thanks to patmarbidon and D. Bolliger for their suggestions. I used Pat's suggestion and added: text1->update(); and the script works as I wanted. Many thanks. Amad Yahoo! oneSearch: Finally, mobile

Perl/Tk Help

2007-09-18 Thread CM Analyst
Hi All, I hope this is still the correct forum to get help with Perl/Tk... My goal is display the time in the GUI window but it doesn't do it quite how I want it to. In the GUI, I want the time to display with the sleep call (set to 1). However, when I use the print statement and the value goe

Need Help Installing Win32:SerialPort - ReVisited

2007-07-19 Thread CM Analyst
Ok, I will sound like an idiot and at the moment, I feel like... Previously I was able to install and use the Win32:SerialPort module in my script on a WinXP PC. My requirement is now to run script on a Windows 2000 Workstation, so I downloaded and installed Perl 5 and the said module using "ppm

Solved: Re: Time stamp not updating

2007-07-13 Thread CM Analyst
Dear All, The following works for me. # use strict; use warnings; use Win32::SerialPort; use IO::Select; use IO::File; use IO::Handle; use Time::Local; # Serial Settings open (PORT, "+>COM1") || die "Can't Open Port\n"; open (LOG, "> c:\\temp\\logdata.txt") || die "Can't Open File

Time stamp not updating

2007-07-13 Thread CM Analyst
Hi, In the following script, I am inserting a time stamp. The problem is that the time stamp ($sec) is not incrementing. What am I doing wrong? open (PORT, "+>COM1") || die "Can't Open Port\n"; open (LOG, "> c:\\temp\\logdata.txt") || die "Can't Open File\n"; while ( ) { #print $_; #sleep 1; #

For Loop error: Missing $ on loop variable at time.pl line 7.

2007-07-10 Thread CM Analyst
Hello. I have this code that works fine without the for loop but fails with it with this error message: "Missing $ on loop variable at time.pl line 7." Here's the code itself: ### use strict; use warnings; use Time::Local; my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst

Solved - Re: Need Help Installing Win32:SerialPort

2007-07-05 Thread CM Analyst
Chas, The command you suggested worked beautifully. I was able to make significant progress using the module in my script. Thank you to the "thebarncat" for your response as well. Best regards. Amad

Need Help Installing Win32:SerialPort

2007-07-03 Thread CM Analyst
Hello everyone. I am relatively new to Perl and this is my first attempt at installing a module. I am using ActiveState v.5.8.8. I downloaded and installed Bill Birthisel's Win32::SerialPort and Win32API::CommPort (Ver 0.19) modules per the instructions. The installation appears to be gone OK b

keyword expansion script

2005-04-27 Thread CM Analyst
I am struggling to modify an existing Perl script that was originally written for a Unix version of ClearCase (SCM tool). The script is supposed provide "keyword expansion" functionality for files that are checked into the SCM system. My task is to make the same script run on Windows and I am n

regular expression help

2005-03-10 Thread CM Analyst
I am quite new to programming and Perl, so please bear with me. I have a requirement to check the format of a field before a record can be saved. The format of the field needs to be double digit value separated by a . (period) like "00.00.00". This I managed to do using the following: use strict;

newbie question: need help reading input into variable

2004-06-09 Thread CM Analyst
Dear experts. I need help..the script below fails to apply the user supplied value to the file in question. I think the problem is because the $String variable is not getting the user supplied value. If my assumption is correct, can some one please show me how to do that? I am very new to scrip