Tell me anything that Perl can do that awk can't.
Pro-tip: you can't.
At least you learned how to spell Perl this time.
>>58558963
>Alfred V. Aho
Quick! name another book by this author without using a search engine.
>>58558963
Adding unicode operators like ÷. Unless you mean perl5.
>>58559546
Too many Parsers (without MARPA edition), too little Else, aka the Faggon Book
>>58558963
Manipulate images, sounds, machine learning, etc.
>>58559668
From the writers of "Web Development with Assembly", presenting "Machine learning with Perl".
>>58559084
It's called a typo.
>>58558963
... Nothing they're both Turing complete.
>>58559857
That doesn't mean shit. Magic the Gathering is turing complete as well.
In real life, mathematical implications don't matter.
>>58559875
>That doesn't mean shit.
Yes it does
>Magic the Gathering is turing complete as well.
No it isn't
>In real life, mathematical implications don't matter.
Yes they do
0/3 see me after class.
>>58558963
write a fizzbuzz, it ain't /g/ if there's no fizzbuzz
>>58559935
not nice being a lyin faggot on the internet anon.
http://www.toothycat.net/~hologram/Turing/HowItWorks.html
>>58560128
awk:#!/usr/bin/awk -f
{
for (i = 1; i <= 100; i++) {
if (i % 15 == 0)
print "FizzBuzz";
else if (i % 3 == 0)
print "Fizz";
else if (i % 5 == 0)
print "Buzz";
else
print i;
}
}
Perl:#!/usr/bin/env perl
use strict;
use warnings;
for (1..100) {
if ($_ % 15 == 0) {
print "FizzBuzz\n";
} elsif ($_ % 3 == 0) {
print "Fizz\n";
} elsif ($_ % 5 == 0) {
print "Buzz\n";
} else {
print "$_\n";
}
}
I write Perl for a living - I don't think you can do that with awk.
>>58560695
How to learn regexp magic?
>>58560695
>I write Perl for a living - I don't think you can do that with awk.
/thread
>>58560695
>I don't think you can do that
What is "that"?
>>58559765
>From the writers of "Web Development with Assembly", presenting "Machine learning with Perl".
well it does work for their python brethren
>>58559857
I hate this argument.
1. Literally everyone knows about Turing completeness and knows that virtually all languages are Turing complete.
2. It doesn't contribute anything to the discussion, even for someone who wouldn't know about it.
3. It's not even factually correct. It doesn't mean the languages are equivalent or that they can be exchanged with each other. That's as dumb as saying that you don't need a new computer because your old one is Turing complete.
4. If we're going to apply the level of hair-splitting that is required for this argument to bear any relevance, it's not even factually correct given that no machine running either language has an infinite amount of memory.
>>58563218
One might be faster than the other at some task but them both being turing complete means they are generally interchangeable.
For instance, you could generate html with either of them.
>>58562536
write awk for a living, obviously
>>58560965
Practice makes perfect. You should find a project which requires lots of text parsing and have someone who already knows regex review it.
>>58562536
>>58563337
Yep
>>58563337
>write awk for a living, obviously
When the only tool you have is a hammer...