![]() |
Perlaccess : Tutorials : Variables Arrays (3.2) by Jacob A. Wheeler http://www.bigresources.com |
|
If you
plan on working with flat-file databases you will want to
learn to take advantage of arrays.
The following code will demonstrate howto split an array:
Click here to view the contents of file.txt Once you split each line of the array using the above code, you can then print it out, run tests on it, or do anything else you can think of with it! Checkout a few examples below:
The $first, $last, and $email variables will all be filled in with the data from that current line in the array. |