Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Problems with Tk and bignum

by papidave (Pilgrim)
on Mar 24, 2011 at 13:59 UTC ( #895261=note: print w/replies, xml ) Need Help??


in reply to Problems with Tk and bignum

It's hard to say for certain what the cause is for your "cryptic error", since you didn't include it with the question. Fortunately, my openSuSE 11.1 box has both bignum and Tk available on it, and when I run your code (with use strict ;-) ) I do see _an_ error which may or may not be applicable:
Assertion ((svtype)((_svi)->sv_flags & 0xff)) >= SVt_PV failed: file " +objGlue.c", line 307 at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linu +x-thread-multi/Tk/Widget.pm line 205. at ./foo.pl line 9
This appears to be failed assert from Tk. My best guess is that the integer width constant is being translated into a bignum, and that Tk doesn't like it. Question: do you really need seamless big integers, or would it be sufficient to specify a few variables as big numbers with a module like Math::BigInt?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://895261]
help
Chatterbox?
[usemodperl]: someone has yet to make that future famous free http to https proxy written in perl and supported by ads, paypal, patreon, etc to make millions of dollars a minute!
[Veltro]: Why would this be fresh, I recon this is stuff that happens all the time (not Perl per se)
[Corion]: usemodperl: I'm sure you could even code that on the command line.
[usemodperl]: definitely

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2018-06-24 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?