4 ms·
Which version of perl do you use, and what do you recommend someone who isn't satisfied with his text mangling skills in python?
by wodenokoto 5y ago
Which version of perl do you use, and what do you recommend someone who isn't satisfied with his text mangling skills in python?
- mst 5y agoThe latest major release of perl is perl5 version 34, but whatever's in /usr/bin/perl on your distro is almost certainly sufficient for learning with (some of my large scale OO codebases are a bit pickier, but for scripting you're somewhat unlikely to notice the difference). Curtis Poe's Beginning Perl is a good all around introduction but I'm unsure if it's a good intro if you're aiming specifically for the text mangling side. For an uber-quick-start, I'd go with https://qntm.org/perl_en https://qntm.org/perl_en and then getting up to speed on the regexp side using the man pages linked from here: https://p3rl.org/RE https://p3rl.org/RE
- waynecochran 5y agoWhatever the last Perl 5 is. I know on my Mac I use MacPorts to install the latest version in /opt/local/bin/perl and that is the version I typically install modules for if I need them. Python is not quite the right tool for automation of file system tasks and regex matching and parsing text files -- I would rather just use C++ for most things I would be tempted use Python for.