hi-
i have a very simple problem..i hope at least. i'd like to have my perl program automatically insert spaces based on the number of characters i read from a variable so that everything is justified without using tabs....
for EX:
$var = rabbit;
$num = length($rabbit);
$spaces = (20 - $num);
print <<STOP
$var\s{$spaces}$var
STOP
something like this...can anyone help??
thanks!
i have a very simple problem..i hope at least. i'd like to have my perl program automatically insert spaces based on the number of characters i read from a variable so that everything is justified without using tabs....
for EX:
$var = rabbit;
$num = length($rabbit);
$spaces = (20 - $num);
print <<STOP
$var\s{$spaces}$var
STOP
something like this...can anyone help??
thanks!