[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] perl string > integer conversion: please help!
****** message to minivend-users from jojo@buchonline.net ******
On 27 Sep, Sezer Yalcin wrote:
> ****** message to minivend-users from Sezer Yalcin <sezery@damla.net> ******
>
> i am crazy with perl strings, please help me how to make sure that this
> will return an integer, not a string?
>
> $rate = '[data taxgroups rate [item-field taxgroup]]';
>
> any suggestions? there was such a problem resolved in discussion groups
> i searched all of them and could not find!
I´m not sure. Can you see the value of
[data taxgroups rate [item-field taxgroup]]
in your browser? If yes, try (not tested)
[seti dummytax][data taxgroups rate [item-field taxgroup]][/seti]
and in your perl codes, try
$dummy = $Safe{'scratch'}->{'dummytax'} * 1;
$rate = $dummy;
I hope this helps!
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671441
45886 Gelsenkirchen FAX: 0209 1671441
-
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