Welcome to the Monastery | |
PerlMonks |
Replacing underscore characters with whitespaceby markinoz (Initiate) |
on Jun 13, 2002 at 09:55 UTC ( [id://174133]=perlquestion: print w/replies, xml ) | Need Help?? |
markinoz has asked for the wisdom of the Perl Monks concerning the following question: Hi I have a survey script that I need to hack, and cant work it out. There is a string called $FORM{'survey'}, this is inputted from a form and the script removes any whitespace so it can be passed thru a url ( with me so far?? ) The problem is when I return $survey it has the underscores in the survey name and my client would like them removed. Is there a way I can replace the underscore chars with white spaces ( this isnt going to be passed to the url its just for a html table title. ) well actually I know there is a way to do this but I cant work it out I have pasted some of the code at the bottom so maybe someone could point me in the right direction?? Thanks
as you can see $survey is used for the table title ( html ) and also used to pass the address to the script thru the url. I was hoping to make a copy of $survey ( $survey1??? ) and remove the _ chars and use $survey1 for my html title. I have tried hardcoding $survey1 = "title here" and it worked fine all I need to know is how to duplicate the $survey Thanks Again Edited 2002-06-13 by mirod: changed the title (was: URGTENT: Need to remove undescore characters) and added <p> tags
Back to
Seekers of Perl Wisdom
|
|