Input/Output (cont)
The special file handle <>
- treats all command-line arguments as file names
- opens and reads from each of them in turn
If there are no command line arguments, then <> == <STDIN>
Example:
perl -e 'print <>;' a b c
|
Displays the contents of the files a , b , c on stdout.
|