| merlyn | if that was sarcasm, you need stronger markers. |
| polak | and I want everything except for "foo" returned? |
| merlyn | polak - "perldoc perlretut" |
| mauke | polak: substr($x, 3) |
| merlyn | didn't we say that before? |
| integral | polak: regexp don't return stuff. |
| Dnumgis | merlyn: was just checking wether eval broke utf8ness |
| merlyn | my ($x) = /(.)/; # ? :) |
| godzirra | Hrm. Anyone know a good module to strip all html tags from a string? |
| merlyn | godzirra - that'll look funny for tables |
| polak | of course foobar is for illustration... and I couldn't use fixed 3, but I take it that regexp is not meant for this and I should use substr and instrin(?) |
| Caranthir | when using Mail::Mailer in a cgi program to mail some form values, when you do the print $mailer $body (as shown on page 727 of perl cookbook, 2nd edition), is that going to work as it should? |
| merlyn | what's the purpose in the stripping? |
| action | merlyn smells spam |
| merlyn | smells spam why are you sending mail from a CGI? |
| godzirra | merlyn: No, its for stuff going inside a table. I'm trying to strip all html tags from the data that goes inside the cells. |
| Caranthir | market survey for boat slips and drystacks around coastal north carolina |
| merlyn | if you want to extract table data, see HTML::TableExtract or something like that Caranthir - and that's not spam, how? |
| mauke | polak: I don't understand what you're trying to do |
| godzirra | no, I want something that strips html tags. Thats why I asked for something that strips html tags ;) |
| merlyn | why does it have HTML tags? |
| godzirra | We have blurbs for the items in our system that users write, and our users can't be trusted to not do stupid things. which breaks when we put it in xml. |
| Caranthir | the form takes boat length, type, name, email address, and phone number from people who are interested in purchasing or leaasing boat slips and then sends them to a particular person |
| merlyn | maybe you want to escape it then |
| Dnumgis | eval: $c = chr 1234; length eval { $c } |
| buubot | Dnumgis: 1 |
| merlyn | if they say 3 < 5, don't you want it to show as "3 < 5" |
| godzirra | no, I want to actually remove it in this case. |
| merlyn | what if it's not actually HTML? like my example |
| godzirra | Thats why I want a module that strips actual html tags :) |
| merlyn | is <b> an HTML tag or not? Might just be talking about "<b>" |
| mauke | so "3 < 5" is fine? |
| godzirra | 3 < 5 is fine. |
| Caranthir | the page is linked to by a banner on a boating site |
| godzirra | Pretty much anything enclosed in < > isn't. |
| merlyn | I hate things that don't let me talk about HTML tags |