perl5
perl5 copied to clipboard
🐪 The Perl programming language
**Description** Opening a file in append write only mode (`>>`) and attepting to read from it puts the file handle in some kind of invalid state. Following writes will have...
This allows questionable code that tries to combine select and buffered I/O to limp along. Such code is still risky due to select() checking the underlying OS handle and not...
extra thoughts https://github.com/Perl/perl5/blob/a73cdaecc7e625c976c1806ebdcb715321d892e3/sv.c#L5247 +(PTRSIZE-1) &0x7 trick https://github.com/Perl/perl5/blob/a73cdaecc7e625c976c1806ebdcb715321d892e3/sv.c#L5265 msize? IDK, but does Perl_safesysmalloc_size()/LIBC backend, in-place stretch the input string alloc block, to in-place realloc to "MAX", whatever MAX is for that...
A few places within toke.c try to return unused string buffer space by doing something like: if (SvCUR(sv) + 5 < SvLEN(sv)) { SvPV_shrink_to_cur(sv); } The rationale for the `5`...
This ended up in the documentation for croak_xs_usage() where it was more confusing than useful. Also fix a missing "," in the provided equivalent code. Fixes #23310 TODO: fill description...
[doc] perlapi: documentation for croak_xs_usage has an undefined "diag_listed_as" tag in the example
Perl v5.40.0 **Where** `perlapi` **Description** The documentation for `croak_xs_usage` reads in part works out the package name and subroutine name from "cv", and then calls croak(). Hence if "cv" is...
This needs to be a scalar reference; I got burned with it not doing the right thing when it wasn't. * I'm unsure if this set of changes requires a...
Migrated from [rt.perl.org#123489](https://rt-archive.perl.org/perl5/Ticket/Display.html?id=123489) (status was 'open') Searchable as RT123489$
In hints/openbsd.sh, we entered the following comments and statement as per `$ git blame` ``` $ git blame -L 153,157 -- hints/openbsd.sh 83f3439aaa8 (Karl Williamson 2019-04-03 14:27:00 -0600 153) #...
I've completed my work of compiling [Perl5 to WebAssembly](https://github.com/uswriting/zeroperl), but one issue I never tracked down is that if the environment variable LC_ALL is not set with a value off...