[rt-devel] script to test for keyword ?
Alan Horn
ahorn at deorth.org
Tue Dec 9 17:32:55 EST 2003
On Tue, 9 Dec 2003, darren chamberlain wrote:
>Date: Tue, 9 Dec 2003 09:54:51 -0500
>From: darren chamberlain <darren at boston.com>
>To: rt-devel at lists.fsck.com
>Subject: Re: [rt-devel] script to test for keyword ?
>
>* Alan Horn <ahorn at deorth.org> [2003/12/08 15:30]:
>> sub IsApplicable {
>> my $self = shift;
>> if ($self->TicketObj->KeywordSelect-2 eq '1.5') {
> ^^^^^^^^^^^^^^^
>
>Perl identifiers are limited to alphanumics and underscores, so this
>will be interpreted as:
>
> if (($self->TicketObj->KeywordSelect) - 2) eq '1.5') {
>
>which is probablt not what you mean.
>
>(darren)
>
>
Looking more closely at the perldoc for Ticket, I realise that
KeywordSelect-2 is not a method (aside from the perl brokenness I put in
there ;)
So, my question is, what method would I call to pull the keywords out of a
transaction ?
Cheers,
Al
More information about the Rt-devel
mailing list