There is also a sample GenBank file, record.gb for testing the script.
Here are also eight preliminary versions of gb2fa.pl. After I wrote the first draft, I made a copy before I fixed each mistake, recording my errors for posterity (and your edification).
gb2fa.0.pl
gb2fa.1.pl
gb2fa.2.pl
gb2fa.3.pl
gb2fa.4.pl
gb2fa.5.pl
gb2fa.6.pl
gb2fa.7.pl