in reply to Re: What is this warning? 'Character in ''c'' format wrapped at ...'
in thread What is this warning? 'Character in ''c'' format wrapped at ...'

Thanks. So it means that 0xDC is not in the range of a signed byte, but it gives the same 8-bit result anyway.
perl -e "print (pack('c',0xDC) eq pack('C',0xDC))"
prints 1.

I think it's simpler just to say "\xDC", though the pack may be clearer in context, among a list of things of various lengths.

—John

  • Comment on Re: Re: What is this warning? 'Character in ''c'' format wrapped at ...'
  • Download Code