You don't need:
use GT::CGI;
or
use GT::CGI::Cookie;
You are already importing $IN which is your CGI object.
my $cookie = $IN->cookie( ... );
use GT::CGI;
or
use GT::CGI::Cookie;
You are already importing $IN which is your CGI object.
my $cookie = $IN->cookie( ... );