manipulate(3pm)
π manipulate(3pm) β the user-contributed Perl docs, but make it a group chat π
okay bestie, sit DOWN, because this is manipulate(3pm), a User Contributed Perl Documentation page, and it's literally all about messing with files. not in a toxic way. in a β¨file-manipulationβ¨ way. let's go π¦
πΈ NAME πΈ
OpaL::manipulate β a Perl extension for manipulating files. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
use OpaL::manipulate qw(functions);
no cap: nothing gets exported automatically β not one function, not one variable β so you HAVE to name the ones you want right there in that qw(...). the module is not gonna guess for you, she's not a mind reader. π«Ά
π DESCRIPTION π
OpaL::manipulate is a module for manipulating files. (iconic, straightforward, no notes. π―)
and here's the cute part: all the functions are autoloaded, so they do not get loaded into memory unless you've actually used them before. it's giving minimal effort until you're needed. main character energy, honestly. π
π FUNCTIONS π
π perlmodifyadvanced
it simply applies the script to the file to change its content. that's the whole job. π
you also have to pass along a message to say what you're doing β mostly for debugging, and also for when any error occurs. and then there's the error level, which tells how critical this action is to the script. so: script, message, error level. all three, bestie.
USAGE:
"perlmodifyadvanced"("file", "script",
"message", errorlevel);
the errorlevel is optional. π
π¦ perlmodify
this one simply fixes some stuff in the script string, and then it calls perlmodifyadvanced. so it's basically the pre-game routine before the actual function shows up. π
USAGE:
"perlmodify"("file", "script",
"message", errorlevel);
the errorlevel is optional here too. β
πΈ perlmodify_insertafter
this function searches for something (a regular expression). if it's found, it inserts the text after it. but β and this is the important part β it will never insert the text twice. it has boundaries. we love that for her. π
you also have to apply a message to tell what you're doing, mostly for debugging and for when any error occurs. the error level tells how critical this action is to the script.
USAGE:
"perlmodify_insertafter"("file", "find", "text",
"message", errorlevel);
and yep, the errorlevel is optional. π
π AUTHOR π
Ola Lundqvist <ola@inguza.com>
(the icon who wrote this. respect. π«‘)
π REQUIRES π
OpaL::actionOpaL::read
β SEE ALSO β
OpaL::actionOpaL::readperl(1)
and that's the whole page, bestie, we ate and left zero crumbs πβ¨
perl v5.40.1 Β· 2025-12-17 Β· and that's the manipulate(3pm) era, dated and versioned and everything, periodt. ππ¦πΈ
π¦ 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