Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Colorize

by marcink (Monk)
on Jun 12, 2001 at 18:06 UTC ( [id://87804]=note: print w/replies, xml ) Need Help??


in reply to Colorize

1. you can use my $phrase=shift; instead of my $phrase = shift(@_); -- @_ is the default parameter in list context.

2. in scalar context @colors == $#colors + 1

3. the HTML you create contains one FONT tag per letter, but you don't need more than @colors of them. You could change the loop to get one pass per color instead of one pass per character.

-mk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found