in reply to Re: Operate with bits
in thread Operate with bits
- 1.) would be correct for characters (or hex digits), but OP wants bits, so you would have to do split(//, sprintf("%b", $address))
- 2.) additionally, for substr to count its offset from right, you have to use negative, so substr((sprintf "%b", $address), -6, 1)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Operate with bits
by rizzo (Curate) on Mar 12, 2020 at 04:18 UTC | |
Re^3: Operate with bits
by syedasadali95 (Acolyte) on Mar 12, 2020 at 06:18 UTC | |
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