News for hackers. Stuff that matters.
Re:Learn to use Awk with hundreds of examples by asicsp on Wednesday October 25, 2017 @11:00AM (#15550659)
Perl does have command-line options to do that :)

    perl -F: -lane '$total+=$F[2] if $F[2]>240; END{print $total}' /etc/passwd
Re:Learn to use Awk with hundreds of examples by ajross on Wednesday October 25, 2017 @12:01PM (#15551237)
Of course it does, the implicit looping and BEGIN/END blocks (I'll concede I had actually forgotten about the implicit splitting) were in fact deliberately designed to emulate awk. Nonetheless I don't think that really changes the point much. The core language syntax is simple enough that perl one-liners can be written without that and still get the point across.