<div dir="ltr">Thank you. I've added 'use RT -init;' to my code.</div><div class="gmail_extra"><br clear="all"><div>-Mathew<br><br>"When you do things right, people won't be sure you've done anything at all." - God; Futurama<div>
<br></div><div>"<span style="background-color:rgb(255,255,255);font-family:arial,sans-serif;font-size:13px;line-height:18px">We'll get along much better once you accept that you're wrong and neither am I." - Me</span></div>
</div>
<br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 12:55 PM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">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">
I'm replying to this question because you've asked variants on it 3<br>
times today and I assume this is the closest to your current code.<br>
<div class="im"><br>
On Mon, Oct 21, 2013 at 08:53:17PM -0400, Mathew Snyder wrote:<br>
> I'm trying to use RT::Queue to load up a specific queue to work with. Right now I'm keeping it<br>
> simple just to get the functionality in place:<br>
> #!/usr/bin/perl<br>
> use warnings;<br>
> use strict;<br>
> use lib '/opt/rt4/lib';<br>
> use RT::Queue;<br>
> my $queue = RT::Queue->new( $RT::SystemUser );<br>
> my $qLoad = $queue->Load(6);<br>
> my $qName = $qLoad->Name;<br>
> print $qName . "\n";<br>
> This results in the error in the subject? What am I doing wrong?<br>
<br>
</div>You're not initializing RT correctly, so RT->SystemUser isn't set up<br>
yet.<br>
<br>
<a href="http://bestpractical.com/docs/rt/latest/RT.html#INITIALIZATION" target="_blank">http://bestpractical.com/docs/rt/latest/RT.html#INITIALIZATION</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-kevin<br>
</font></span></blockquote></div><br></div>