in reply to Re: find a string and count of its occurence in a text file
in thread find a string and count of its occurence in a text file

Thanks a lot narainhere :-) i need some explanation though, if you please.

what is the function of -->
sub retriver() in line number 3;

  • Comment on Re^2: find a string and count of its occurence in a text file

Replies are listed 'Best First'.
Re^3: find a string and count of its occurence in a text file
by narainhere (Monk) on Nov 14, 2007 at 06:51 UTC
    It's function prototyping.That's needed because retriver() is not defined while it's been called.If you remove the prototyping (line 3) you have to use &retriver() while calling the function ,which tells the compiler to look for the definition somewhere below.

    The world is so big for any individual to conquer

      It isn't needed if you don't use prototypes