Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Interchange: No float division from UserTags and [perl]



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Stefan Hornburg (racke@linuxia.de):
> ******    message to minivend-users from Stefan Hornburg <racke@linuxia.de>     ******
> 
> Mike Heins <mikeh@minivend.com> writes:
> 
> > ******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******
> > 
> > Quoting Stefan Hornburg (racke@linuxia.de):
> > > 
> > > 
> > > I have a very strange problem with calculations
> > > 
> > > [calc] 0.5 / 2 [/calc] 
> > > 
> > > works fine, while
> > > 
> > > $Tag->calc('0.5 / 2')
> > > 
> > > evaluates to 0.
> > > 
> > > Any hints ?
> > 
> > Cannot do Safe within Safe. Why would you do that anyway? 8-)
> 
> Oh, bad example. It doesn't even work in a UserTag:
> 
> UserTag bla Routine <<EOF
> sub {
>         0.5 / 2;
> }
> EOF
> 
> (The actual code is more complicated, but it boils down to that.)

To repeat, you cannot use Safe within Safe. Why would you use $Tag->calc()
ever? 

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>

Friends don't let friends use Outlook. -- Bob Blaylock
-
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: