in reply to Re: Help comparing data in byte by shifting (>>) bits
in thread Help comparing data in byte by shifting (>>) bits

You could simply return the value of ($bytetocheck >> $bittocheck) & 1, since it will return 0 or 1. And it's unnecessary to use the '&' when calling your function.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^3: Help comparing data in byte by shifting (>>) bits
by unixhome (Novice) on Jun 15, 2006 at 20:06 UTC
    Jeff: Done! Thanks, RV