in reply to extraction of sequences

The file you want to parse seems to be in GFF format. In that case, you could maybe try the GFF parser from BioPerl ... Bio::Tools::GFF