good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Matching text in a stringby Corion (Patriarch) |
on Apr 16, 2015 at 09:12 UTC ( [id://1123601]=note: print w/replies, xml ) | Need Help?? |
You never show us where you actually output $text. Also, you don't show us the values of $firstname and the overall program logic. Also, consider what happens when my firstname is A - do you really want to skip adding my first name then? Update: Also see BrowserUks reply, which points out the more likely the cause of your immediate problem. Update 2: You really should consider using a template system instead of trying to munge HTML that has already been created afterwards. First create all the data you need and then create the HTML. Don't create HTML while running through your program.
In Section
Seekers of Perl Wisdom
|
|