develooper Front page | perl.beginners | Postings from March 2002

from file to a list containing lists

Thread Next
James Woods
March 4, 2002 16:04
from file to a list containing lists
Message ID:
I've got a file that I would like to import into a list.  The file has many 
rows, and each row has 3 records, seperated with a "|".

Example of file is as below:

f|Axe Strike|d
f|Disquiet of our people|p
f|Dwarven Armor|p

When I was just using 1 record in the file, @Array = <FILE> ended up working 

Now that I've moved on and added two more records, I just don't know what to 
do.  I'm working with split now, but it's only returning the first row.

I know you all can help this rookie out, thanks!!!

Send and receive Hotmail on your mobile device:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About