in reply to Using pack to evaluate text strings as hexadecimal values
You don't need pack, you need hex:
You also need to use & (binary-wise and) instead of && (logic-wise and).shell$ perl -e 'print hex("E000"), "\n"' 57344
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using pack to evaluate text strings as hexadecimal values
by davis (Vicar) on Mar 07, 2006 at 14:46 UTC |
In Section
Seekers of Perl Wisdom