[rt-users] PErl question for RT Status values

Ken Crocker kfcrocker at lbl.gov
Mon Feb 1 15:23:41 EST 2010


Joop,
 
No. I waslooking thru _Perl for Dummies_ and _Learning Perl_ and 
coul;dn't find any reference for the "set" command". I'll try that now. 
Thanks.

Kenn
LBNL

On 2/1/2010 12:15 PM, Joop van de Wege wrote:
> Ken Crocker wrote:
>> To list,
>>
>> In the past (3.6.4) I was able to add a couple values for my @active 
>> ticket statuses by modifying the RT_SiteCOnfig.pm values thus:
>>
>> @ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 
>> 'stalled') unless @ActiveStatus;
>>
>> Now, with the more stringent syntax, I have this:
>>
>> Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 
>> 'stalled')));
>>
>> The problem is that the single quotes end up as part of the value. I 
>> can't just remove them because I need to protect the integreity of 
>> two values that include an embedded space ('pending QA' and 'QA 
>> approvd').
> Did you try to use double quotes?, like
> Set(@ActiveStatus, (qw("'new' 'open' 'pending QA' 'QA approvd' 
> 'stalled'")));
>
>
> Regards,
>
> Joop
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100201/c1584def/attachment.htm>


More information about the rt-users mailing list