[Bioperl-l] Please help

Hi ,
I'm completely new to perl. I'm have to work in biology using perl,
postgresql (as database) and clustalw(as the alignment
tool). I'm stating my problem briefly:
In the postgresql db the data is clustered using complete linkage
clustering. I've to connect to that db, fetch those data, feed it to
the multiple alignment tool, run it and show the results.Again,
feed those alignments into a scoring tool and show the results in
form of a histogram.All these needs to be automated using perl.
I've installed bio-perl but can't get how to write code using it.
I'll be obliged if you help me with this by providing the idea of how
to feed the db data (in fasta format) into clustalw.
Thanks,
Angshu