By bigbenn
my $jmsfn = "jms-connection.xml";
sub getJmsPathName($) {
my ($i) = @_;
return sprintf "/tmp/$jmsfn", $APSAPPDIR, $i, $i;
}
my $format = "%8s %15s %8s %sn";
printf $format, "Instance", "Service", "Actual", "Configured";
foreach my $i (@instances) {
prolix("Checking instance: " . $i);
my $jmsref = getJmsXml($i);
foreach my $c (@{$jmsref->{JMSConnConfig}->{JMSConnections}->{Connection}})
The format is currently set at 15, but I want it to be set to the amount of spaces of the longest Service, becuase it is messing up the column alignment. I know I need to add a subroutine, I am just not sure how I should set it to recgognize the value.