man OpaL::read () - Perl extension for reading files and commands.

NAME

OpaL::read - Perl extension for reading files and commands.

SYNOPSIS

  use OpaL::read qw(functions);

No functions or variables are exported automaticly so you have to specify them here.

DESCRIPTION

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.

FUNCTIONS

readfile
Reads the content of the specified file and returns a list with the all lines. USAGE: CW@foo = CWreadfile($filename);
readfileline
Reads the first line of the specified file and returns a scalar with that line. USAGE: CW$foo = CWreadfileline($filename);
readscalarfile
Reads the content of the specified file and returns a scalar with the entire content. USAGE: CW$foo = CWreadscalarfile(filename);
readcommand
Reads the content from the output of the specified command and returns a list with the all lines. USAGE: CW@foo = CWreadcommand(command);
readcommandline
Reads the first line from output of the specified command and returns a scalar with that line. USAGE: CW$foo = CWreadcommandline(command);
readscalarfile
Reads the content for the output of the specified file and returns a scalar with the entire content. USAGE: CW$foo = CWreadscalarcommand($command);

AUTHOR

Ola Lundqvist <opal@debian.org>

SEE ALSO

perl(1).