Please give me the program code in java or perl to convert a microarray dataset to ARFF file format .......
A:
There are a couple of libraries which do this. One is Weka, which is Java. That is probably your best bet. There is a perl implementation on cpan here.
If these are not what you're looking for you should flesh out your question.