Sep 15, 2004, 5:43 AM
Post #1 of 2
Hello there, I have just started using Perl as of today and have run into a problem that I was hoping someone could help with,
Data from a file
I have a file with several thousand records in the format:
|0|PA|1|||BELL|FRANCIS|D|||1||ANGORA WAY||FLEET|HAMPSHIRE|GU51 2UA|
Now I require the first three data items (0 PA 1) from the record stored in three seperate arrays. I know how to cycle through all records however when I am trying to split on | occurance the data is getting lost.
Thanks for any help!