Home: Perl Programming Help: Intermediate:
Automatic Code Generator


Mar 22, 2010, 1:12 AM

Views: 872
Automatic Code Generator


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. :)


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