There's more than one way to do things | |
PerlMonks |
How would I replace the string 'Red1' with $Red[1]?by draco_iii (Acolyte) |
on Jun 29, 2000 at 17:29 UTC ( [id://20361]=perlquestion: print w/replies, xml ) | Need Help?? |
draco_iii has asked for the wisdom of the Perl Monks concerning the following question:
I have 8 common looking varibles and I need to check for them
all in one line of a file to change the font color. But when
I ran the following all it did was exactly what I told it to
do. it replaced $red1 with $red1 when what I wanted it to do
was replace $red1 with "black" and $red2 with "red".
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|