in reply to Creating a array hash with all file content

Achieving this is easy, but you don't tell us where/how your program fails to do what you want.

Look at perlop to see how <...> behaves in scalar context. Most likely, you don't want to use it in scalar context.

Replies are listed 'Best First'.
Re^2: Creating a array hash with all file content
by Anonymous Monk on Apr 30, 2011 at 06:43 UTC

    Its not printing the grep line and the corresponding line.Appreciate if you can help Coron

      Perhaps you should use a suitable print statement?