MoshiachNow
IS-IT--Management
HI,
The same string ($temp) formated with sprintf,is correctly printed to a file using "print",but looses all it's formating when displayed in the Tk text->insert:
$temp=sprintf("%-55s %-30s %-10s %-16s %-10s\n", $key, $services{$key}, $state{$status{CurrentState}}, $startup{$value}, $status{ServiceType});
&disp($temp);
sub disp {
my $message=shift;
$txt -> insert('end',$message);
print "$message";
}
Appreciate any ideas.
Long live king Moshiach !
The same string ($temp) formated with sprintf,is correctly printed to a file using "print",but looses all it's formating when displayed in the Tk text->insert:
$temp=sprintf("%-55s %-30s %-10s %-16s %-10s\n", $key, $services{$key}, $state{$status{CurrentState}}, $startup{$value}, $status{ServiceType});
&disp($temp);
sub disp {
my $message=shift;
$txt -> insert('end',$message);
print "$message";
}
Appreciate any ideas.
Long live king Moshiach !