read(3pm)
π read(3pm) π
okay bestie, welcome to OpaL::read β a Perl extension for reading files and commands, straight out of the User Contributed Perl Documentation collection. it's giving "tiny module, big helper energy" β¨
πΈ NAME πΈ
OpaL::read β Perl extension for reading files and commands. that's it, that's the whole vibe π«Ά
π SYNOPSIS π
use OpaL::read qw(functions);
no functions or variables are exported automatically, so you have to specify them here yourself. the module is not gonna read your mind, bestie, you gotta ask π
π¦ DESCRIPTION π¦
OpaL::read is used for reading files and commands. that's the whole job description and honestly? iconic β¨
all functions are autoloaded, so they will not be loaded into memory if you have not used them before. it's the "show up only when summoned" lifestyle and we respect it π
π FUNCTIONS π
π readfile
reads the content of the specified file and returns a list with all the lines. every single line, no skimping π
USAGE:
@foo = "readfile"($filename);
πΈ readfileline
reads the first line of the specified file and returns a scalar with that line. just the one. the opening line, the main character π
USAGE:
$foo = "readfileline"($filename);
β readscalarfile
reads the content of the specified file and returns a scalar with the entire content. the whole thing, in one variable, no cap π
USAGE:
$foo = "readscalarfile"("filename");
π₯ readcommand
reads the content from the output of the specified command and returns a list with all the lines. yes bestie, we're running commands and reading what they say back π
USAGE:
@foo = "readcommand"("command");
π§ readcommandline
reads the first line from the output of the specified command and returns a scalar with that line. one line only, blink and it's over π
USAGE:
$foo = "readcommandline"("command)";
π readscalarfile
reads the content for the output of the specified file and returns a scalar with the entire content.
not me pointing out that this heading saysreadscalarfilebut the usage line callsreadscalarcommandπ« the manpage said what it said, and we are keeping it exactly as written. no editing the sacred text, periodt.
USAGE:
$foo = "readscalarcommand"($command);
π«Ά AUTHOR π«Ά
Ola Lundqvist <ola@inguza.com> β the icon who wrote all this π
π SEE ALSO π
that's the whole page, bestie π this was read(3pm), perl v5.40.1, dated 2025-12-17 β mwah, slay, go read some files πβ¨
π¦ where this page comes from
- ubuntu resolute: opalmod 0.2.2.1build1
- ubuntu stonking: opalmod 0.2.2.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms