Hello,

I'm not sure how you're referecing @Array, but the loop you want probably
looks like

foreach $line (@Array) {

#your code to deal with $line goes here

}

In that loop, $line will equal each line of your input file, in turn.
So, just call split on $line and deal with the data in sequence :)


Robert Aspinall
V-ONE Corporation
[EMAIL PROTECTED]

----- Original Message -----
From: "James Woods" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 7:03 PM
Subject: from file to a list containing lists


> 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
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to