[rt-users] Ticket Requestors returned as hash ref

Mathew Snyder theillien at yahoo.com
Mon Aug 6 06:16:15 EDT 2007


Mike Friedman wrote:
> On Sun, 5 Aug 2007 at 15:10 (-0400), Mathew Snyder wrote:
> 
>> I've been trying to figure out how to dereference the hash but I
>> haven't been successful.
> 
> Mathew,
> 
> Don't you want $ticket->RequestorAddresses, rather than
> $ticket->Requestors?  The latter returns the ticket's requestors as an
> RT::Group object, whereas the former returns all the Requestor email
> addresses as a comma-delimited string.
> 
> Mike
> ======================================================================

*ding ding ding ding*

We have a winner. :D  Thanks.  For some reason, that hadn't even occurred to me
despite looking directly at it on more than one occassion.

Mathew

>>> while (my $ticket = $tix->Next) {
>>>         print $ticket->Requestors . "\n";
>>>     if (exists($skipEmails{$ticket->Requestors}) or
>>> $ticket->Requestors == "") {
>>>                 next;
>>>         }
>>>         else {
>>>                 push @emails, $ticket->Requestors;
>>>         }
>>> #       $ticket->SetStatus("deleted");
>>> }
> 
> _________________________________________________________________________
> Mike Friedman                        Information Services & Technology
> mikef at ack.Berkeley.EDU               2484 Shattuck Avenue
> 1-510-642-1410                       University of California at Berkeley
> http://socrates.berkeley.edu/~mikef  http://ist.berkeley.edu
> _________________________________________________________________________
> 



More information about the rt-users mailing list