Re: Open a file to a Hash

2002-05-20 Thread drieux
On Sunday, May 19, 2002, at 07:31 , Jolinar of Malkshur wrote: > I wasn't asking for anyone to do my homework. I was just looking > for -suggestions- on how to do it a specific part that I got hung up on. > You know, pointers in the right direction? > > Jolinar >> what you are looking for is e

Re: Open a file to a Hash

2002-05-20 Thread José Nyimi
perldoc -f tie Or Why not use hash of array structure: open(FH,$filename) || die "error message\n"; @file_content=; close(FH); $hash{FILE}=\@file_content; ### After you can use your hash like this : $myfile_arrayref=$hash{FILE}; foreach $line ( @{$myfile_arrayref} ){ #bla bla #print "$line\n"; }

Re: Open a file to a Hash

2002-05-20 Thread Jolinar of Malkshur
I wasn't asking for anyone to do my homework. I was just looking for -suggestions- on how to do it a specific part that I got hung up on. You know, pointers in the right direction? Jolinar "Drieux" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Sunday,

Re: Open a file to a Hash

2002-05-19 Thread drieux
On Sunday, May 19, 2002, at 01:05 , Jolinar of Malkshur wrote: > Hi, I'm taking a Perl class at a local community college (Palomar, if > anyone > recognizes that) and I've gotten stuck on a problem. It's an online class > and I don't have any contact with anyone else in the class. well be for

Re: Open a file to a Hash

2002-05-19 Thread Jolinar of Malkshur
n/m I got an email from a friend about 5 minutes after I posted this with some suggestions that worked. Jolinar "Jolinar Of Malkshur" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, I'm taking a Perl class at a local community college (Palomar, if anyone

Open a file to a Hash

2002-05-19 Thread Jolinar of Malkshur
Hi, I'm taking a Perl class at a local community college (Palomar, if anyone recognizes that) and I've gotten stuck on a problem. It's an online class and I don't have any contact with anyone else in the class. Anyway, what I'm trying to find out is if it is possible to open a file and put it in