Yes, it's a fine choice for text munging and gluing programs together. And since many bioinformatics programs are distributed as command-line executables rather than libraries for some language, a good glue language is important. I suggest also learning R for statistics, and C to make your own algorithms run fast.