Hacker News new | ask | show | jobs
by gregw2 713 days ago
Having learned both at an intermediate level, I use awk for structured data handling, Perl for textual pattern matching.

Perl was inspired by awk, not the other way around. Perl is more general purpose.

1 comments

this was my understanding as well. perl grew out of sed/awk/bash, so might as well learn perl.

that said, i found it gives a lot of 'foot-guns'.

>> i found it gives a lot of 'foot-guns'.

Most of those are for backward compatilibity with earlier versions.

Recommend you place the following at the top of your Perl scripts:

    use strict;
    use warnings;
These are recommended for all scripts: https://learn.perl.org/first_steps/