We can specify filenames in command line using perl.

Nguyễn Trà

New member
We can specify filenames in command line using perl.
A. True
B. False
 
Answer: a
Explanation: perl provides specific functions to open a file and perform I/O operations on it. The <> (diamond) operator is used for reading lines from a file. For example,
Code:
 perl  -e ‘print while (<>)’  dept.lst        // file opening implied
 

Tìm kiếm

Back
Top