in reply to Name spaces and Perl::Tk coding style
In addition to being easier to read, the good thing about this is that in my app you can add and remove rows dynamically. So when you click a button it just calls "add_row()"; click another and it calls "remove_row()". The "grid" object would handle that, and it can make sure you don't have less than $MIN_ROWS rows or more than $MAX_ROWS rows, and keep track of the current number of rows, etc. etc.
Depends what your requirements are though. Only use OO if it makes sense to use it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Name spaces and Perl::Tk coding style
by TGI (Parson) on Oct 05, 2005 at 20:05 UTC |