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

from file to a list containing lists

Thread Next
From:
James Woods
Date:
March 4, 2002 16:04
Subject:
from file to a list containing lists
Message ID:
F441QMTraCM4g3vwkrr00017de0@hotmail.com
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 
great.

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: http://mobile.msn.com


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About