[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] use HTML::Entities in UserTag?
****** message to minivend-users from jojo@buchonline.net ******
On 15 Mar, cfm@maine.com wrote:
> ****** message to minivend-users from cfm@maine.com ******
>> ****** message to minivend-users from jojo@buchonline.net ******
>> --------------snipp----------
>> # [encode] message [/encode]
>> #
>> # This tag is the equivalent of [L] ... [/L] localization, except
>> # it works with contained tags
>> #
>>
>> UserTag encode hasEndTag 1
>> UserTag encode Interpolate 1
>> UserTag encode Routine <<EOF
>> sub {
>> my ($message) = @_;
>> use HTML::Entities;
>> encode_entities($message);
>> $message = $message;
>> return $message;
>> }
>> EOF
>
> Develop a way to debug.
>
> return join '<BR>',@INC; # where is perl
>
> HTML::Entities::encode_entities($message); # I don't use it, don't know syntax
>
> then maybe eval{} and return $@ if defined($@);
>
> You can also add HTML::Entities into bin/minivend. I'm
> not real up on the differences between use and require and how
> those will play in a UserTag.
Hi cfm,
i'm a newbie in perl and it is hard to understand perl.
I don't understand, how to use
return join '<BR>',@INC; # where is perl
A little perl script like
--------snipp--------
#!/usr/bin/perl
use HTML::Entities;
$string = 'MÜLLER';
encode_entities($string);
print $string . "\n";
--------snapp--------
works! I have tried HTML::Entities::encode_entities($message); too. It
doesn't works! I have tried "use HTML::Entities" in bin/minivend. It
doesn't works! I get no any messages in my error.log or anywhere!
I am in a muddle! Any helps will be very appreciate!
Thanks!
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen FAX: 0209 1671449
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list