in reply to Re: Re: Re: hex(unpack("H*")) help?!?!in thread hex(unpack("H*")) help?!?!
Er... the result of reverse "ab" varies according to the context it is evaluated in. The concaternation operator evaluates it in scalar context.
$ perl -le 'print "0x" . reverse "ab"' 0xba [download]
I'm not saying my solution is a good idea, but I do know how reverse works :)
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg