IO(3perl)

✨ IO β€” like, the manual page for IO ✨

okay so this is IO(3perl) from the Perl Programmers Reference Guide, and honestly bestie, it's a short one but it slaps πŸ’–


🌸 NAME 🌸

IO β€” loads a whole bunch of IO modules in one go, no cap 🫢


πŸŽ€ SYNOPSIS πŸŽ€

use IO qw(Handle File); # loads IO modules, here IO::Handle, IO::File
use IO;                 # DEPRECATED

πŸ’… DESCRIPTION πŸ’…

so IO is literally the group-chat invite of Perl modules β€” it gives you one cute simple mechanism to load several of the IO modules all at once. icon behavior. πŸ‘‘

The IO modules that belong to the core are:

IO::Handle
IO::Seekable
IO::File
IO::Pipe
IO::Socket
IO::Dir
IO::Select
IO::Poll

Now, there are other IO modules that lowkey aren't part of the perl core, but you can still load them if you've installed them from CPAN. Wanna find out which ones even exist? Run this little query and go off: https://metacpan.org/search?q=IO%3A%3A.

and for more info on any of these modules, girl, just go read its own respective documentation. each one has its own lore πŸ“–βœ¨

πŸ’€ DEPRECATED πŸ’€

use IO;                # loads all the modules listed below

okay so here's the tea: the modules that get loaded are IO::Handle, IO::Seekable, IO::File, IO::Pipe, IO::Socket, IO::Dir.

And what you should be doing instead β€” the main character move β€” is explicitly importing the IO modules you actually want. don't be lazy with your imports bestie, it's giving deprecated πŸ™ˆ


and that's the whole page, periodt πŸ’œ this was IO(3perl) from perl v5.44.0, dated 2026-10-17 β€” stay hydrated, import explicitly, and slay βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms