To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 26
25  |  27
Subject: 
Re: awk vs. perl for simple tasks
Newsgroups: 
lugnet.off-topic.geek
Date: 
Sat, 15 May 1999 03:52:17 GMT
Viewed: 
383 times
  
In article <MPG.119a8db2b45b0a21989927@lugnet.com>, lehman@javanet.com
(Todd Lehman) wrote:

BTW, I think Larry Wall once commented or wrote something to the effect of,
"awk still has to be better than perl at something."

That's in reference to the awk idiom:

  awk '{ print $4 }'

which is much longer to do in perl.  I personally
use this as a shell command inside Emacs all the
time.  I'm not good at perl one-liners.

-Tim

--
Tim and/or Shelley Rueger - rueger "at" io.com
WWW page: http://www.io.com/~rueger/



Message has 1 Reply:
  Re: awk vs. perl for simple tasks
 
(...) Awww, it's not _that_ much longer in perl: perl -alne 'print $F[3]' although it certainly doesn't roll off the tongue quite as nicely. (...) Can't columns be grabbed easily in Scheme/Lisp? --Todd (26 years ago, 15-May-99, to lugnet.off-topic.geek)

Message is in Reply To:
  awk vs. perl for simple tasks
 
(...) Yup! It's a Perl world, but awk is still a great thing! It's hardly my favorite general-purpose programming language, but other than grep and sort and cat and uniq, it's by far my favorite command-line pipe. I think perl has a command line (...) (26 years ago, 5-May-99, to lugnet.faq, lugnet.off-topic.geek)

21 Messages in This Thread:








Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR