Converting CSV File Into Table Using Perl
Not what you're looking for?
Create a Perl script to parse through a comma-separated values (CSV) file and display each record in a tabular format. As an example, take:
John, Dean, 23
Malcolm, Ranger, 49
Jennifer, Randolf, 49
And then display it in a table such as: (see attachment)
Purchase this Solution
Solution Summary
Script that performs outlined functionality in attachment.
Solution Preview
This solution required creating a perl script that would read a file
of comma separated values and output those values as an html table.
In order to read data from a file the file first has to be opened.
This is done in perl using the open() function:
<pre>
open(FP,"file.csv") || die "Couldn't open the file: $!n";
</pre>
This also includes ...
Purchase this Solution
Free BrainMass Quizzes
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Basic Networking Questions
This quiz consists of some basic networking questions.