Geez, if your gonna flame a newcomer, at least answer the question while your at it.
Don't post to multiple lists at once Lance.... See below for answers to your question... ----- Original Message ----- From: "Curtis Poe" <[EMAIL PROTECTED]> To: "Lance Prais" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 4:22 PM Subject: Re: beginner question > We just discussed this today. Please do NOT crosspost. This is better in the [EMAIL PROTECTED] > list. Further, having a useful subject line helps. If I had a penny for every unhelpful subject > line I've seen today... hold on a minute... I'd have $1.27 :) > > (tip 'o the keyboard to Terry Pratchett for that bit of stupid humor :) > > --- Lance Prais <[EMAIL PROTECTED]> wrote: > > use DB_File; > > > > tie(@array, "DB_File", "/tmp/textfile", O_RDWR|O_CREAT, 0666, $DB_RECNO) > > or die "Cannot open file 'text': $!\en" ; > > > > $array[4] = "a new line"; > > untie @array; > > > > > > In the above statment what is the following items refering too? > > DB_File", > > O_RDWR|O_CREAT > > 0666 > > DB_RECNO > > ------------------------------------------------------ > > @array this is the array > > "/tmp/textfile the file that is beiing treated like an array DB_File is a module that you are going to use some functionality from. O_RDWR is to state that you want read/write access to this file |O_CREAT is to state that if the file does not exist to create it 0666 is to set the permissions of the created file $DB_RECNO - I don't know yet, I have not used DB_File before but my guess would be that this is the data that will be written to the newly created file. Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]