Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re:x3 Favorite programming language, other than Perl: (awk!)

by grinder (Bishop)
on May 07, 2002 at 12:12 UTC ( [id://164594]=note: print w/replies, xml ) Need Help??


in reply to Re: (FoxUni) Re: Favorite programming language, other than Perl:
in thread Favorite programming language, other than Perl:

Yep. I voted for "other" simply because awk wasn't there. I used awk on unix and DOS (yay Thomson Toolkit), and found myself writing awk scripts that wrote their own batch files and then called those batch files to continue the processing. Ah, the good old days. It was indeed outgrowing awk's limits that led me to Perl.

These days I still find myself using awk for one-liners, because it's more compact for saying things like '{print $4}' that the corresponding Perl code.

Awk really was a godsend after having dealt with only grep and sed. I no longer remember any sed, and that's a Good Thing.


print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

Replies are listed 'Best First'.
Re:x4 Favorite programming language, other than Perl: (awk!)
by jmcnamara (Monsignor) on May 07, 2002 at 12:42 UTC

    These days I still find myself using awk for one-liners

    A few months ago I was going to post a golf competition based on the one-liners at the beginning of The Awk Programming Language. A sort of awk versus Perl.

    However, when I tried it myself I couldn't out-golf any of the awk solutions.

    I am very fond of awk. It stirs emotions in me like memories of an old sweetheart.

    --
    John.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://164594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found