Query: opal::read
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
read(3pm) User Contributed Perl Documentation read(3pm)NAMEOpaL::read - Perl extension for reading files and commands.SYNOPSISuse OpaL::read qw(functions); No functions or variables are exported automaticly so you have to specify them here.DESCRIPTIONOpaL::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.FUNCTIONSreadfile Reads the content of the specified file and returns a list with the all lines. USAGE: @foo = "readfile"($filename); readfileline Reads the first line of the specified file and returns a scalar with that line. USAGE: $foo = "readfileline"($filename); readscalarfile Reads the content of the specified file and returns a scalar with the entire content. USAGE: $foo = "readscalarfile"("filename"); readcommand Reads the content from the output of the specified command and returns a list with the all lines. USAGE: @foo = "readcommand"("command"); readcommandline Reads the first line from output of the specified command and returns a scalar with that line. USAGE: $foo = "readcommandline"("command)"; readscalarfile Reads the content for the output of the specified file and returns a scalar with the entire content. USAGE: $foo = "readscalarcommand"($command);AUTHOROla Lundqvist <ola@inguza.com>SEE ALSOperl(1). perl v5.10.1 2012-08-21 read(3pm)