Perl extension for manipulating files.
use OpaL::manipulate qw(functions);
No functions or variables are exported automaticly so you have to specify them here.
OpaL::manipulate is a module for manipulating files.
All functions are autoloaded so they will not be loaded into memory if you have not used them before.
It simply applies the script to the file to change its content. You also have to apply a message to tell what you are doing mostly for debugging and if any error occures. The error level tells how critical this action is to the script. \s-1USAGE:\s0
\*(C`perlmodifyadvanced\*(C'(\*(L"file\*(R", \*(L"script\*(R", \*(L"message\*(R", errorlevel);
The errorlevel is optional.
It simply fixes some stuff in the script string and then calls perlmodifyadvanced. \s-1USAGE:\s0
\*(C`perlmodify\*(C'(\*(L"file\*(R", \*(L"script\*(R", \*(L"message\*(R", errorlevel);
The errorlevel is optional.
This function searches for something (regular expression). It if is found it inserts the text after it. But it will never insert the text twice. You also have to apply a message to tell what you are doing mostly for debugging and if any error occures. The error level tells how critical this action is to the script. \s-1USAGE:\s0
\*(C`perlmodify_insertafter\*(C'(\*(L"file\*(R", \*(L"find\*(R", \*(L"text\*(R", \*(L"message\*(R", errorlevel);
The errorlevel is optional.
Ola Lundqvist <[email protected]>
OpaL::action, OpaL::read.
OpaL::action
OpaL::read
perl\|(1)