in reply to Comparing the bytes of a file
Once you have read your string, you could then use @bytesFromFile = unpack'C*',$string; to allow you to compare them byte by byte.
Alternatively, you could $stringFromBytes = pack'C*', @myValues; and the use any of perl's usual string comparison methods.
Without seeing your code that's failing, or a better description of your application, it's hard to see how to help you further.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Comparing the bytes of a file
by Monolith-0 (Beadle) on Aug 28, 2002 at 18:12 UTC |