in reply to subroutine to search a pattern in a file

subroutines get their arguments through @_. See perlintro, perlsub.

Also see a similar program Online GREP problem.

  • Comment on Re: subroutine to search a pattern in a file