[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] perl integers
****** message to minivend-users from Sezer Yalcin <sezery@damla.net> ******
hi all,
i have a simple but crucial question:
in [perl], i am in trouble with that perl integer/string type cast!
$rate = '[data table="taxgroups" field="rate" key="[item-field
taxgroup]"]';
# this database field is absolutely an integer
$rate += 10; # not work!!!!
XXXXXXXXXXXXXXXX
Now this does not work but:
$rate = '[item-field taxrate]';
$rate += 20;
This pretty works!!!
I see it is from string/integer casting but how can i eliminate this? I
remeber a past post n this topic searched archives for hours but could
not find it.
i tried a double-bracked version and also with q{} but did not work out.
Please help asap.
best,
Sezer.
-
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