3 ms·
If you're writing a filter, an even better pattern is: while (<>) { ... } By omitting the file handle, "<>" will go line by li
by mct 13y ago
If you're writing a filter, an even better pattern is:
while (<>) {
...
}
By omitting the file handle, "<>" will go line by line through each filename specified on the command line. If no filename arguments were passed, it reads from STDIN.