For anyone who uses the center function. It actually works much better now and I've resolved some off centering issues with a -4 offset on the formula:
Code:
$Cent = $_[0];
$SendCharLength = $_[1];
if($SendCharLength != 2){
$CentLength = length($Cent);
$IC = (53 - ($CentLength * .80) - 4);
}
else{
$IC = $Cent;
}
my $n = 0;
my $Result = "";
while ($n < $IC){
$Result .= " ";
$n++;
}