pad($v, 30, 'x'); # $v is now 30 characters long print $v;