3 ms·
Thanks for pointing that out! I haven't used perl yet, it should probably be on my list of things to learn though :)
by mcintyre1994 10y ago
Thanks for pointing that out! I haven't used perl yet, it should probably be on my list of things to learn though :)
- tyingq 10y agoA fair amount of it is based on awk, so awk might be better to start with.
- throwaway7645 10y agoPerl5 is a really big language...especially when you look at extending it with the 10 gigs of CPAN code. It grew from a need to have a better Awk, but I'm not sure if they're related close enough for starting with Awk to matter. Perl6 is an all around sister language that isn't ready for production yet, but has a ton of power and features including the ability to call other languages (python, perl5, Lua, scheme).
- tyingq 10y agoSure. I meant that though in the context of "I've been learning this at work as part of a get-good-at-Linux regime". Which I suppose involves using awk mostly for command pipelines / one liners. Awk and Perl would have a lot of overlap (autosplit, matching, BEGIN, END, etc) in that space.
- throwaway7645 10y agoYea, if you're just doing one-liners...probably easier to start with Awk. For more complicated scripts, Perl or Python should be built in.