PerlIO...ersize(3pm)
π PerlIO::buffersize β like, the whole vibe π
okay so bestie, this page lives in the User Contributed Perl Documentation section of the manual (the 3pm girlies, you know the ones β¨), and it's about making your filehandles have a custom buffer size. tiny page, huge energy. let's get into it π«Ά
β¨ NAME β¨
PerlIO::buffersize β set the buffersize of a handle π
fr fr, that's the whole mission statement.
πΈ VERSION πΈ
version 0.002 π
π¦ SYNOPSIS π¦
look at her, she's so simple:
open my $fh, '<:buffersize(65536)', $filename;
that's it. that's the move. π
π DESCRIPTION π
so basically this module sets the buffer-size of a filehandle to an other value than the default. like, you want a different size than whatever Perl picked for you? this is the girl for the job. π
but β and this is the important part, bestie, listen up β this can only be done before the handle is used. once the buffer has been allocated it can not be changed. no takebacks, no do-overs, no "wait actually let me resize it". the buffer is allocated, the door is closed, the vibe is locked in. π
lowkey a warning: do it at open time or don't do it at all. there is no second chance here. π
π§ SYNTAX π§
this module does not have to be loaded explicitly β it will be loaded automatically by using it in an open mode. yes queen, she's self-installing, she shows up uninvited and slays. β¨
the general syntax is:
:buffersize(size)
and the size can be any positive integer. that's the whole rule. any positive integer. go wild (positively). π₯
π AUTHOR π
Leon Timmermans <leont@cpan.org> β the icon behind all of this π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, share it, remix it, same terms as Perl 5 itself, periodt. π
and that's the whole page, bestie!! this one came from perl v5.42.0, dated 2025-07-25 β literally vintage-adjacent but still iconic. mwah ππ¦β¨
π¦ where this page comes from
- fedora 43: perl-PerlIO-buffersize 0.002-22.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms