# from cr...@animalhead.com # on Sunday 11 April 2010 12:07: >My CPAN module ...
Which is mostly made of XS? >is ($ipw->getcc(10000), '**', "getcc(10000) should return **"); > >These tests assume that Perl stores the constants 0, 999, 1000, 9999, > and 10000 as strings. Why do they assume that? Of course, if you're treating them as strings, the numbers will stringify. You could get rid of assumptions by using quoted strings here. >They pass on all CPAN testers' systems except one (so far). > On that system all of the above tests return '??' ?? --Eric -- Turns out the optimal technique is to put it in reverse and gun it. --Steven Squyres (on challenges in interplanetary robot navigation) --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------