in reply to Re: perl awk
in thread perl awk

So basically its a loop? Is the comparison being done on every line in reference, a single line, or some other part?

Replies are listed 'Best First'.
Re^3: perl awk
by educated_foo (Vicar) on Apr 09, 2013 at 23:03 UTC
    Pretty much. Awk works a lot like "perl -ane", looping over lines in a file and splitting them into fields. An awk command is of the form "TEST { ACTION }", where TEST controls whether ACTION is performed. It's more involved than that, but since I learned Perl first, I rarely use awk. You might try feeding the awk command to a2p to get a perl equivalent of what it does.