<div>This is my loop on the queues which is not working..</div><div><br></div><div>my $queues = new RT::Queues(RT::SystemUser);</div><div>foreach my $queue ($queues->Next) {</div><div><br></div><div><br></div><div>there must be some mistake above. Is the creation of my variable $queues correct ? </div>

<div><br></div><div>I also tried the following: </div><div><br></div><div>my $queues = new RT::Queues(RT::SystemUser);</div><div>while ( my $queue = $queues->Next ) {</div><div><br></div><div>but it did not work better. So that's why I suspect this is the way I get the list of queues which is not the way it should be..</div>

<div><br></div><div>Any idea ?</div><div><br></div><div>Thanks</div><div><br></div>Pierre BUHAS<br>+353 1 217 8422<br><br>Duolog Technologies<br><br>
<br><br><div class="gmail_quote">On 19 January 2011 21:43, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Wed, Jan 19, 2011 at 02:09:38PM +0000, Pierre Buhas wrote:<br>
>    my %domain_map = ();<br>
>    my $queues = new RT::Queues(RT::SystemUser);<br>
>    foreach my $queue ($queues->Next) {<br>
>    $domain_map { $queue->FirstCustomFieldValue('MailDomain') } = $queue->Name;<br>
>    }<br>
<br>
</div>That really wants to be a while ( my $queue = $queues->Next ) {<br>
<br>
The new is really old-style but should be fine<br>
<font color="#888888"><br>
-kevin<br>
</font></blockquote></div><br>