in reply to New Object and loops with Text:SimpleTable

Simply change the scope of $subj_max. Just before the for loop, declare
my $subj_max = 0;
and remove the 'my' from
my $subj_max = max @subj_len;

Replies are listed 'Best First'.
Re^2: New Object and loops with Text:SimpleTable
by ghenry (Vicar) on Oct 19, 2006 at 07:09 UTC

    Of course. The key word being scope.

    Thanks.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!