develooper Front page | perl.perl5.porters | Postings from January 2020

Re: “strict” strings?

Thread Previous | Thread Next
Tony Cook
January 7, 2020 03:44
Re: “strict” strings?
Message ID:
On Tue, Jan 07, 2020 at 02:36:56PM +1100, Tony Cook wrote:
> If I understand the code either way it ends up with a string object,
> not a bytes object ( decoded with struct.unpack with a format of
> "<length>s" which returns a string ).

I was looking at the 2.x documentation, p appears to return a bytes
object now.

I wonder if that's a deliberate change (since the old broken code
returns a string.)

Also apparently:

- Not Perl compatible


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About