in reply to Re^2: Operate with bits
in thread Operate with bits
Thanks rizzo & soonix. Actually substr((sprintf "%b", $address), -7, 1) is serving my need as we are starting from right side of the bit stream (LSB) and starting to count from bit 0 to bit 5, so total of six bits and keeping -7 in the substr func as index makes us catch the 6th bit from the bit stream. Thanks again for the help guys
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Operate with bits
by AnomalousMonk (Archbishop) on Mar 12, 2020 at 07:24 UTC | |
by soonix (Canon) on Mar 12, 2020 at 10:08 UTC | |
by AnomalousMonk (Archbishop) on Mar 12, 2020 at 10:32 UTC | |
by soonix (Canon) on Mar 12, 2020 at 10:40 UTC | |
by GrandFather (Saint) on Mar 12, 2020 at 07:29 UTC | |
by AnomalousMonk (Archbishop) on Mar 12, 2020 at 08:07 UTC |
In Section
Seekers of Perl Wisdom