if (/some-pattern/) { ...
This isn't really unique when you consider perl. while (<>) {
if (/pattern/) {
This does the same. Awk simply has the implicit loop. if (/some-pattern/) { ...
This isn't really unique when you consider perl. while (<>) {
if (/pattern/) {
This does the same. Awk simply has the implicit loop.