my $STServer = defined($ARGV[0]) ? $ARGV[0] : 'localhost'; ... my $STServer = $STServerFactory->Create($STServer, $STPort);