I believe that Bash scripts should be trivially short and simple. As soon as any complexity is introduced they should be written in another language.
Perl was written to write more complicated bash scripts. It's so seamless to call and handle shell commands and the first class regexes make it terse in a way that's appropriate for this use case.