View Single Post
  #3  
Old 06-18-2011, 05:19 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

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 .= "&nbsp;";
					$n++;
					}
Reply With Quote