Re: find for a word in a file

2007-10-14 Thread yitzle
You will need to use the open keyword to open the file, the while loop to loop through the file and the RegEx matching patternt to search for the word. Documentation on all that exists at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: find for a word in a file

2007-10-14 Thread Chas. Owens
On 10/14/07, Vidhi <[EMAIL PROTECTED]> wrote: > hi > I am in a bad situation to finish my assignment.I am very new to perl, > started to explore to complete my assignment. > > I need to open a gdbm file and search for a word in it. > how can i write it. > plse help! take a look at perldoc -f dbmo

Re: find for a word in a file

2007-10-14 Thread Tom Phoenix
On 10/14/07, Vidhi <[EMAIL PROTECTED]> wrote: > I need to open a gdbm file and search for a word in it. You can use the tie() function to connect a hash to the GDBM file, more or less like this: use GDBM_File; tie my %DATA, "GDBM_File", $filename, &GDBM_READER, 0; Then you can examine the h

find for a word in a file

2007-10-14 Thread Vidhi
hi I am in a bad situation to finish my assignment.I am very new to perl, started to explore to complete my assignment. I need to open a gdbm file and search for a word in it. how can i write it. plse help! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO