perl code help

2010-10-25 Thread saran
i am new to perl. please help me with this piece of code below. answer wat it prints is correct but the format has to adjusted...! program to convert Celsius to Fahrenheit ** #!/usr/bin/perl use warnings; use strict; p

perl code help

2006-03-23 Thread Irfan J Sayed
Hi All, I have written simple script in perl to get the user login name Following is the script $sessionobj = $entity->GetSession(); $username = $session->GetUserLoginName(); $entity->SetFieldValue("submitter_id", $username); But when i am running my cq application this hook is not executing a

Re: perl code help

2010-10-25 Thread ashwin ts
Helo Saran, The reason why it was printed in the next line is because u have no used chomp function on $c.Chomp would remove unwanted new line characters. I added chomp($c) to ur code and it works fine.. i mean as hw u wanted.. pls find the same code below with chomp..

Re: perl code help

2010-10-25 Thread Shlomi Fish
Hi Saran, overall, pretty good code. On Monday 25 October 2010 18:21:31 saran wrote: > i am new to perl. please help me with this piece of code below. > answer wat it prints is correct but the format has to adjusted...! > program to convert Celsius to Fahrenheit >

Re: perl code help

2010-10-25 Thread Jim Gibson
On 10/25/10 Mon Oct 25, 2010 9:21 AM, "saran" scribbled: > i am new to perl. please help me with this piece of code below. > answer wat it prints is correct but the format has to adjusted...! > program to convert Celsius to Fahrenheit > **

Re: perl code help

2010-10-25 Thread C.DeRykus
On Oct 25, 9:21 am, simssa...@gmail.com (saran) wrote: > i am new to perl. please help me with this piece of code below. > answer wat it prints is correct but the format has to adjusted...! > program to convert Celsius to Fahrenheit >

Re: perl code help

2006-03-23 Thread Chas Owens
On 3/23/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote: > Hi All, > > I have written simple script in perl to get the user login name > > Following is the script > > $sessionobj = $entity->GetSession(); > $username = $session->GetUserLoginName(); > $entity->SetFieldValue("submitter_id", $username); >

Re: perl code help

2006-03-23 Thread Irfan J Sayed
Hi Chas, This is the only program i am using. Plz tell me what i am doing wrong. Regards Irfan Sayed "Chas Owens" <[EMAIL PROTECTED]> 03/23/2006 10:29 PM To Irfan J Sayed/India/[EMAIL PROTECTED] cc beginners@perl.org Subject Re: perl code help On 3/23/06, Irfan

Re: perl code help

2006-03-23 Thread Chas Owens
On 3/23/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote: > > > Hi Chas, > > This is the only program i am using. > > Plz tell me what i am doing wrong. > snip > > > Following is the script > > > > $sessionobj = $entity->GetSession(); > > $username = $session->GetUserLoginName(); > > $entity->SetFi

Re: perl code help

2006-03-23 Thread Irfan J Sayed
lly don't know what all modules needs to be added to run this script. plz help me. Regards Irfan Sayed "Chas Owens" <[EMAIL PROTECTED]> 03/23/2006 10:53 PM To Irfan J Sayed/India/[EMAIL PROTECTED] cc beginners@perl.org Subject Re: perl code help On 3/23/06, Irf

Re: perl code help

2006-03-23 Thread Jay Savage
On 3/23/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote: > Hi Chas, > > Thanks for mail. > > I am writting this script in clearquest application and i really don't > know what is the meaning of $entity. In clearquest language "An Entity > object representing a user data record" > > and secound thing i