Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: New Object and loops with Text:SimpleTable

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


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://579226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2020-07-04 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?