Home: Perl Programming Help: Intermediate:
Automatic Code Generator



domingj
Novice

Mar 22, 2010, 1:12 AM


Views: 732
Automatic Code Generator

Hello,

I am currently making automatic code generator in Perl. I am accessing an excel file to get the data for the creation of a new file (New.cs). Here are the sample data from Excel File:

Name Account

Jonathan Personal

Ray Checking

Domingo Personal

Fontanilla Checking



What I need is to create an output with a filename New.cs. What I am expecting as an output is here:



private void CheckingList()
{
accountChecking.Add((string) "Ray");

accountChecking.Add((string) "Fontanilla");
}



private void PersonalList()
{
accountPersonal.Add((string) "Jonathan");

accountPersonal.Add((string) "Domingo");
}





Kindly help me to code this in Perl. :)



Jonathan


(This post was edited by domingj on Mar 22, 2010, 1:13 AM)