Perl extension for reading files and commands.
use OpaL::read qw(functions);
No functions or variables are exported automaticly so you have to specify them here.
OpaL::read is used for reading files and commands.
All functions are autoloaded so they will not be loaded into memory if you have not used them before.
Reads the content of the specified file and returns a list with the all lines. \s-1USAGE:\s0
@foo = \*(C`readfile\*(C'($filename);
Reads the first line of the specified file and returns a scalar with that line. \s-1USAGE:\s0
$foo = \*(C`readfileline\*(C'($filename);
Reads the content of the specified file and returns a scalar with the entire content. \s-1USAGE:\s0
$foo = \*(C`readscalarfile\*(C'(\*(L"filename\*(R");
Reads the content from the output of the specified command and returns a list with the all lines. \s-1USAGE:\s0
@foo = \*(C`readcommand\*(C'(\*(L"command\*(R");
Reads the first line from output of the specified command and returns a scalar with that line. \s-1USAGE:\s0
$foo = \*(C`readcommandline\*(C'(\*(L"command)\*(R";
Reads the content for the output of the specified file and returns a scalar with the entire content. \s-1USAGE:\s0
$foo = \*(C`readscalarcommand\*(C'($command);
Ola Lundqvist <[email protected]>
perl\|(1).