If you're going to use the Ensembl Perl API, you first want to retrieve the transcripts you're interested in and subsequently use
my @introns = @{$transcript->get_all_Introns()};
This should give all introns for the transcript in question in 5'>3' order.
Which organism?
specially I need to download first intron of human of TSP and HK genes and later I need to download first intron of set of functionally related genes.
What have you tried? Also, "each gene" might be quite a lot..
I used BioPerl script ....but since Ensembl having separate table for intron and exon ...so I think there is a way to extract only the colum(database field) which contain the first intron sequences