Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Awk and Perl unique features

by CountZero (Bishop)
on Apr 16, 2010 at 06:16 UTC ( [id://835020]=note: print w/replies, xml ) Need Help??


in reply to Awk and Perl unique features

Perl being a Turing complete computer language, there is nothing awk does that Perl can't do.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Awk and Perl unique features
by CountZero (Bishop) on Apr 16, 2010 at 10:06 UTC
    If you Google for "Is awk Turing complete", you get a lot of links to pages that say awk is Turing-complete although I yet have to find a formal proof, but then again, I didn't check all of the 3470 results of that search.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re^2: Awk and Perl unique features
by Anonymous Monk on Apr 16, 2010 at 08:16 UTC
    Is awk turing complete? If it is, then your argument holds good and everything that's possible in Perl should also be possible in awk.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2026-03-07 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.