I had read somewhere about one specific feature that is present in awk
but not in Perl. I have failed in locating it again.
I would appreciate it if anyone here can point it out.
This might be a useless trivia, but I am still curious to know.
I had read somewhere about one specific feature that is present in awk
but not in Perl. I have failed in locating it again.
I would appreciate it if anyone here can point it out.
This might be a useless trivia, but I am still curious to know.
From perldoc perlvar:
Remember: the value of
$/
is a string, not a regex.awk
has to be better for something. :-)
perltrap - Awk Traps lists several differences between awk and perl.
See also: a2p - Awk to Perl translator
The awk to perl translator man page digs up one thing that Perl can't do:
But in general, Perl is turing complete, it can do everything awk can do. The fact that an awk to perl translator exists should be proof enough :)