[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] about the challenge :)



Sorry, I meant:

  if (CODE HERE) { print "this is NOT a power of two" }

or

  unless (CODE HERE) { print "this is a power of two" }

Now you know that the code I'm thinking of (still 7 chars) returns 0 for
powers of two.  Specifically, it returns a positive non-zero number for
non-powers of two.  Chew on that.

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy@pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe