[rt-users] Can't call method "Name" without a package or object reference
Kevin Falcone
falcone at bestpractical.com
Tue Oct 22 12:55:43 EDT 2013
I'm replying to this question because you've asked variants on it 3
times today and I assume this is the closest to your current code.
On Mon, Oct 21, 2013 at 08:53:17PM -0400, Mathew Snyder wrote:
> I'm trying to use RT::Queue to load up a specific queue to work with. Right now I'm keeping it
> simple just to get the functionality in place:
> #!/usr/bin/perl
> use warnings;
> use strict;
> use lib '/opt/rt4/lib';
> use RT::Queue;
> my $queue = RT::Queue->new( $RT::SystemUser );
> my $qLoad = $queue->Load(6);
> my $qName = $qLoad->Name;
> print $qName . "\n";
> This results in the error in the subject? What am I doing wrong?
You're not initializing RT correctly, so RT->SystemUser isn't set up
yet.
http://bestpractical.com/docs/rt/latest/RT.html#INITIALIZATION
-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131022/982cad21/attachment.sig>
More information about the rt-users
mailing list