Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splitting file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have to create three separate output files, each containing two different sets.The output files are to be HTML compliant ready for web posting. They will contain a very descriptive header and the data sets are to be presented in a table with borders, where the data sets have been subdivided into groups of ten pairs each. Each group will be properly identified with "Sample Set 1", "Sample Set 2", "Sample Set 3", and so on. The output files are to be named "S1-2.html", "S1-3.html", and "S2-3.html", respectively.
I am just a neebie for perl, and i have tried to figure this out, but it has stumped me. I have looked at several tutorials on the web, but they have just information on webpages. Any help on this would be greatfully helpful.
 
I'm sorry but I just don't understand what you're try to acheive.

What is your input? In which format?

I think that you should provide some examples of the in/out files.
 
Alpha,

Is this an assignment?

In any case, it's too broad a question to answer effectively.

We're more than happy to help you here with *specific* questions that you're having trouble with, but we don't do homework...
Mike
michael.j.lacey@ntlworld.com
 
Yes the first thing you want to do is break the assignment down into identifiable parts and go from there.

Perhaps the first thing you want to do is try and create one of the output files that you need by hand. Meaning just create the HTML for it yourself, so you have an idea of what you want your script to do.

You will not be able to create anything using Perl effectively if you do not understand eactly what you want it to create.

Once you have the basic template down, you must decide what data is to be put into the tables and determine how you come by that data and how it is to be ordered.

Once you know exactly what you need and what the final output should look like, then you can begin thinking in terms of Perl and how to get it to do what you want.

If you are a real newbie, you probably want to start out by creating a simple "hello world" perl program first, and then write a program that will simply create a file and save some text in it before you try and tackle the bigger problem.

Regards,
Gerald








 
thx gerald -- that's what I *should* have written --- much nicer
Mike
michael.j.lacey@ntlworld.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top