[rt-users] Can't call method "Name" without a package or object reference

Mathew Snyder mathew.snyder at gmail.com
Mon Oct 21 20:53:17 EDT 2013


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?

-Mathew

"When you do things right, people won't be sure you've done anything at
all." - God; Futurama

"We'll get along much better once you accept that you're wrong and neither
am I." - Me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131021/4a1cb852/attachment.htm>


More information about the rt-users mailing list