Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
No such thing as a small change
 
PerlMonks  

Re: New Object and loops with Text:SimpleTable

by pgor (Beadle)
on Oct 18, 2006 at 18:55 UTC ( [id://579226]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 03: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!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://579226]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.