[rt-users] Reverse (date) order in Ticket History
Rick Ford
rickford at ufl.edu
Wed Feb 13 12:14:55 EST 2002
At 11:07 AM 2/13/2002, Bruce Campbell wrote:
>On Wed, 13 Feb 2002, Beachey, Kendric wrote:
>
> > my $Transactions = $Ticket->Transactions;
> >
> > if ($Ticket->QueueObj->Name == 'webrequest')
>
>'==' is a binary numeric comparison, and in the above essentially resolves
>to 'if( 1 == 1 )'. Try instead:
>
> if( $Ticket->QueueObj->Name =~ /webrequest/i )
Or, if you don't need the full power of a regular expression (i.e. if you
just want to check for equality), use 'eq' - the string equivalent of '=='.
if ($Ticket->QueueObj->Name eq 'webrequest')
Rick Ford
rickford at ufl.edu
Technical Coordinator, CITT
More information about the rt-users
mailing list