News for hackers. Stuff that matters.
Re:Perl 11 by MichaelMoser123 on Wednesday October 24, 2018 @12:47AM (#18289792)
Perl is no longer my first choice for scripting. Once upon a time perl was preinstalled on almost every Linux box and was a default package on most distributions, now you can't assume that. Also it is a bit difficult to use cpan - often the c code for a module does not compile for some reason during installation and you have to go and figure; on the other hand I never had any problems with pip. (Though I still don't quite like Python)

On the other hand bash has maps so it is possible to use that more for scripting.

Re:Perl 11 by collyw on Wednesday October 24, 2018 @04:40AM (#18290672)
Bash has a horrible syntax. Beyond a simple for loop I would reach for Perl.
Re:Perl 11 by MichaelMoser123 on Wednesday October 24, 2018 @09:50AM (#18292385)
But it has set -x ; really helps to see what the script is doing step by step. I don't know how to do that easily with other languages.
Re:Perl 11 by bmn__ on Wednesday October 24, 2018 @12:41PM (#18294009)
Put "how to trace a X script" (where X is a language name) into the search engine of your choice.
Re:Perl 11 by CydeWeys on Wednesday October 24, 2018 @04:57AM (#18290770)
Shell scripts have so many footguns. Python is almost as terse, takes less time to write (for me anyway), and is way more maintainable.
Re:Perl 11 by jimpudar on Wednesday October 24, 2018 @02:30AM (#18290154)
What Linux distros don't include Perl by default? I certainly haven't come across any...
Re:Perl 11 by MichaelMoser123 on Wednesday October 24, 2018 @10:26AM (#18292659)
Well I did not do a lot of research for this post, but many installations that I have to deal with come from some image where perl is not been installed.