Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 14th, 2008, 06:53 PM
Newbie
 
Join Date: Aug 2008
Posts: 2
Default Two Dimentional Array

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.
Reply
  #2  
Old August 14th, 2008, 08:35 PM
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Posts: 3,641
Default

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.
Reply
  #3  
Old August 14th, 2008, 09:06 PM
Newbie
 
Join Date: Aug 2008
Posts: 2
Default

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.
Reply
  #4  
Old August 14th, 2008, 11:55 PM
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 833
Default

Please share with us the code that you have tried.

--Kevin
Reply
  #5  
Old August 15th, 2008, 01:17 AM
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Posts: 3,641
Default

http://perldoc.perl.org/perllol.html
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles