This module implements a rudimentary shell script parser in Perl.

WWW: http://search.cpan.org/dist/Shell-Parser/