By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,710 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,710 IT Pros & Developers. It's quick & easy.

Two Dimentional Array

P: 2
Greetings!

I am a new bee to perl, please help!

I have a text file delimited by pipe ( | )
A|Apple
B|Baloon

I would like to load this into a two dimentional array. Please suggest a way to do this.

Appriciate the help.
Thanks.
Aug 14 '08 #1
Share this Question
Share on Google+
4 Replies


KevinADC
Expert 2.5K+
P: 4,059
Do you know any perl? Do you know how to open a file and read it? Is this school/class/course work? Lets see what you have tried so far.
Aug 14 '08 #2

P: 2
I got started with perl a month back.
Yes I know file handling also worked with one dimentional arrays.
googled to find how to read a text file into a two dimensional array but could not find much help.

Await your reply.
Thanks.
Aug 14 '08 #3

eWish
Expert 100+
P: 971
Please share with us the code that you have tried.

--Kevin
Aug 14 '08 #4

KevinADC
Expert 2.5K+
P: 4,059

Post your reply

Sign in to post your reply or Sign up for a free account.