unixhome has asked for the wisdom of the Perl Monks concerning the following question:
The statement (when constructed correctly) should return 0 or 1. I would appreciate some pointers on how to accomplish the task. Thanks in advance, RV$a = "data in particular byte" $b = "positions to shift" ((($a >> $b) && ) == 1 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help comparing data in byte by shifting (>>) bits
by japhy (Canon) on Jun 15, 2006 at 17:11 UTC | |
|
Re: Help comparing data in byte by shifting (>>) bits
by samtregar (Abbot) on Jun 15, 2006 at 17:01 UTC | |
|
Re: Help comparing data in byte by shifting (>>) bits
by unixhome (Novice) on Jun 15, 2006 at 19:39 UTC | |
by ikegami (Patriarch) on Jun 15, 2006 at 21:42 UTC | |
by japhy (Canon) on Jun 15, 2006 at 19:59 UTC | |
by unixhome (Novice) on Jun 15, 2006 at 20:06 UTC | |
by unixhome (Novice) on Jun 15, 2006 at 19:49 UTC |