Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Awk and Perl unique features

by eyepopslikeamosquito (Chancellor)
on Apr 16, 2010 at 09:02 UTC ( #835047=note: print w/replies, xml ) Need Help??

in reply to Awk and Perl unique features

From perlvar:

Remember: the value of $/ is a string, not a regex. awk has to be better for something. :-)
I suspect this not allowing a regex in Perl's record separtor $/ variable was the source of the famous Larry Wall quote:
Hey, I had to let awk be better at *something*... :-)

Seriously, I've used both awk and Perl extensively over the years, and I'd say Perl wins easily for just about everything. Perhaps most tellingly, Perl scales better as programs tend to naturally grow larger over the years (as I similarly argued against Unix shell in Unix shell versus Perl). By all means compare Perl with Ruby and Python, but not awk: it's no contest.

Replies are listed 'Best First'.
Re^2: Awk and Perl unique features
by rubasov (Friar) on Apr 16, 2010 at 12:22 UTC
    Larry Wall let awk to be better at *something* in the past, but tsee was not so kind-hearted to awk (fortunately), so he has written File::Stream. :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://835047]
[1nickt]: Gotya.
[LanX]: hmm reviews have no vote button?
[1nickt]: I use many books for purposes other than that for which they were written: decoration, paperweight, coffee mug coaster on the good table ...
[LanX]: ah Vote button missing on Review threads

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-11-17 21:52 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (274 votes). Check out past polls.