File I/O


In Perl, data can be read from the standard input file, STDIN, and written to the standard output file, STDOUT, or the standard error file, STDERR. For example, the following statement :

$inputline=<STDIN>
reads a line of content from the standard input file and :
print(STDOUT,"This is the content to write");
writes a string to the standard output file.

To access a common file other than STDIN, STDOUT, and STDERR:


Previous PageTable of ContentNext Page