Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: New Object and loops with Text:SimpleTable

by pgor (Beadle)
on Oct 18, 2006 at 22:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://579226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found