3 ms·
In fact the boilerplate you describe is mostly redundant if you use perl -p since perl -p results in your program running with this wrapper: LINE: whil
by greenleafjacob 8y ago
In fact the boilerplate you describe is mostly redundant if you use perl -p since perl -p results in your program running with this wrapper:
LINE:
while (<>) {
... # your program goes here
} continue {
print or die "-p destination: $!\n";
}
- flukus 8y agoCorrect me if I'm wrong, but this will only be line based won't it? As far as I can tell there is no equivalent of FS/RS/OFS/ORS that make awk the record (not line) based language it is.