in reply to formatting output

print $var1, " " x (20 - length($var1)), $var2;
Untested and there's probably a printf statement to do the same...

ar0n ]