Fred,

That was exactly it!  Thank you for the quick response and help!

Joe

Joseph Kasell
Senior Systems Engineer
Navy Federal Credit Union



                                                                           
             "Grooms,                                                      
             Frederick W"                                                  
             <frederick.w.groo                                          To 
             m...@xo.com>                arslist@ARSLIST.ORG                 
             Sent by: "Action                                           cc 
             Request System                                                
             discussion list                                       Subject 
             (ARSList)"                Re: Perl Question                   
             <arsl...@arslist.                                             
             ORG>                                                          
                                                                           
                                                                           
             07/28/2009 01:49                                              
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             arsl...@arslist.o                                             
                    RG                                                     
                                                                           
                                                                           




I think you are looking for the shift() function in perl.

(Notice how I added in the $variable in your example to pull the data
from the command line)

Perl Help:   http://perldoc.perl.org/index-language.html

Fred

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:arsl...@arslist.org] On Behalf Of Joseph Kasell
Sent: Tuesday, July 28, 2009 12:41 PM
To: arslist@ARSLIST.ORG
Subject: Perl Question

Hello listers!

I'm simultaneously diving into perl and arsperl for the first time and
I'm
seeing a lot of possibilities at what one can do.  I'm also running into
a
bit of a headache in the following which, I'm sure, is a simple matter,
but
I'd like some advice.

The Perl script is as follows:



#!/usr/local/bin/perl
use ARS;

my $variable =3D shift();

($c =3D ars_Login("servername", "user", "password")) || die "ars_Login:
$ars_errstr";
if (!$c) {print("Could not connect to ARS ($ars_errstr)\n");exit(1);}

($r =3D ars_SetEntry($c, "Joetest", "000000000000002", 0, "536870914",
$variable)) ||
            die $ars_errstr;




This works fine from the server console and from a run process within an
active link.  My question has to do with the set entry command.  How can
I
pass a variable from a Remedy field to field ID 536870914 on form
Joetest
in this script instead of the hard-coded value of "Bob?"  Again, I'm
sure
this is a simple matter, but I'm new to this, and I'm very certain I'm
overlooking something.  Appreciate the help!

Joe

Joseph Kasell
Senior Systems Engineer
Navy Federal Credit Union

_______________________________________________________________________________

UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: "Where the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: "Where the Answers Are"

Reply via email to