1 |
We have already seen how to read from standard input with
-
$line = <STDIN>; # returning next line INCLUDING terminal newline
-
@file = <STDIN>; # returning whole file with one line stored in each element of list @file
|
2 |
We can also easily access the arguments of a PERL program. Suppose you invoke a PERL program makePHD with
-
makePHD file1 file2 file3
|
3 |
Then we will see later how to access individual files file1, file2, file3 using standard argument conventions in UNIX
|
4 |
however the convention <> (Diamond Operator) will access the concatenation of the three files with all being read into array @argfiles with
|