Akopia Akopia Services

[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 Stefan Hornburg <racke@linuxia.de>     ******

Sezer Yalcin <sezery@damla.net> writes:

> ******    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]]';

Yes, $rate = int ('[data taxgroups rate [item-field taxgroup]]'),
but that is not what you want.

Try instead:

[perl tables=taxgroups interpolate=1]
$rate = $Tag->data('taxgroups', 'rate', '[item-field taxgroup]');


Ciao
        Racke

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <--- 
-
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


Search for: Match: Format: Sort by: