My arrays are strings. Each elements is one line from a file.
This is how I read the data and insert it into 2 arrays:
$infile1 = "sept13.csv";
$infile2 = "sept14.csv";
open (infile1);
@array1=<infile1>;
close(infile1);
open (infile2);
@array2=<infile2>;
close(infile2);
The format of file(.csv) is as follows.
Last Name, First Name, WebCT ID, Password, Courses
Calvert,Aaron,aacalvert,0120015,lib101
Accardo,Andrea,aaccardo,0110659,biol361h:cost280h:lib100
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.