Alister West

home is where your code is ...

RT script boilerplate.

my-rt-script.pl

#!/usr/bin/env perl
BEGIN {
    use FindBin qw/$Bin/;
    use lib "$Bin/../local/lib", "$Bin/../lib";
}
use strict;
use warnings;
use autodie;
use feature qw/say/;

use Data::Dumper;

use RT;
use RT::Interface::CLI qw/CleanEnv/;
use RT::Ticket;
use RT::User;

$|++;
CleanEnv();
RT::LoadConfig();
RT::Init();
By Alister West