Y
Yakov
When I add 'use bigint' to the working program, it stops working.
I tracked the problem to eval(). eval() (evaluates simple arithmetic
expression gioven as string) works without bigint, but stops working
when bigint is added:
perl -e '$expr="1+2"; print eval($expr)' # prints 3 as expected
-- works
perl -e 'use bigint; $expr="1+2"; print eval($expr)' #prints
nothing
-- stops working when 'use bigint' is added
How do I fix eval() in the presence of 'use bigint' ?
Thanks
Yakov
I tracked the problem to eval(). eval() (evaluates simple arithmetic
expression gioven as string) works without bigint, but stops working
when bigint is added:
perl -e '$expr="1+2"; print eval($expr)' # prints 3 as expected
-- works
perl -e 'use bigint; $expr="1+2"; print eval($expr)' #prints
nothing
-- stops working when 'use bigint' is added
How do I fix eval() in the presence of 'use bigint' ?
Thanks
Yakov