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 = shift(); ($c = ars_Login("servername", "user", "password")) || die "ars_Login: $ars_errstr"; if (!$c) {print("Could not connect to ARS ($ars_errstr)\n");exit(1);} ($r = 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"