Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Matching text in a string

by Corion (Patriarch)
on Apr 16, 2015 at 09:12 UTC ( [id://1123601]=note: print w/replies, xml ) Need Help??


in reply to Matching text in a string

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-23 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found