Slightly off-topic reply, but those $texttab and $tabcolor variables are screaming to be turned into an array. I can hear them from here, "please, please, turn us into an array!"
My rule of thumb: nearly any time you have a bunch of variables with the same prefix, they should be put into either a hash or an array. In your case, the only difference between each variable name is a number, which strongly indicates an array.
Update: looking more closely, it even seems those two sets of variables are related to eachother, which makes their screams even louder. Here's what I would do for something like that:
@tabs = ( { text => 'Intro', color => 'bisque' }, { text => 'First Act', color => 'lightyellow' }, { text => 'Second Act', color => 'azure' }, { text => 'Third Act', color => 'PeachPuff' }, { text => 'Fourth Act', color => 'pink' }, { text => 'Fifth Act', color => 'OldLace' }, { text => 'Sixth Act', color => 'wheat1' }, { text => 'Finish', color => 'khaki' }, );
In reply to Re^4: noveling and software design
by revdiablo
in thread noveling and software design
by apotheon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |