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 / 27
26  |  28
Subject: 
Re: awk vs. perl for simple tasks
Newsgroups: 
lugnet.off-topic.geek
Date: 
Sat, 15 May 1999 07:28:45 GMT
Viewed: 
373 times
  
In lugnet.off-topic.geek, rueger@io.com (Tim Rueger) writes:
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.

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.


I personally use this as a shell command inside Emacs all the
time.  I'm not good at perl one-liners.

Can't columns be grabbed easily in Scheme/Lisp?

--Todd



Message is in Reply To:
  Re: awk vs. perl for simple tasks
 
(...) 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 (26 years ago, 15-May-99, to lugnet.off-topic.geek)

21 Messages in This Thread:








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

Custom Search

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