Re:Something about functions in Bash (2017)
by sethrin on Thursday July 05, 2018 @10:30PM
(#17468445)
I think that the simple expression of this might be that Bash is a command language, not a scripting language.
What's difficult about hierarchial data structures in Perl?
Agreed, it's rather one of Perl's strengths.
Re:Something about functions in Bash (2017)
by AceJohnny2 on Friday July 06, 2018 @03:30PM
(#17474406)
The need for references.
Re:Something about functions in Bash (2017)
by 3rdAccount on Thursday July 05, 2018 @10:52PM
(#17468515)
Haha, I came to the same conclusions. Perl can do nested data structures, but it ain't easy. With Python, I did it without knowing it was a thing.
I finally started appreciating Perl after having to write some nontrivial Bash scripts.
(My hierarchy is: default to Bash when my task is mostly running commands. If there's a bit of text-processing or regex required, Perl. If I need any hierarchical datastructures, Python)