Just another Perl shrine | |
PerlMonks |
Re^3: Colorizeby tlilley (Initiate) |
on Jul 15, 2005 at 18:16 UTC ( [id://475319]=note: print w/replies, xml ) | Need Help?? |
If speed is a concern, among other things, you might move the declaration of @colors out into an enclosing block:
This way, @colors will still have only be 'locally' visible to colorize, but it will only be created once, at load-time, instead of every time you call colorize();.
In Section
Cool Uses for Perl
|
|