in reply to How to read the file from stdin using perl?

Do you mean you want to be given a filename as STDIN, then open that file and read your data from it?

Or do you mean you want to read your data directly from STDIN?

  • Comment on Re: How to read the file from stdin using perl?

Replies are listed 'Best First'.
Re^2: How to read the file from stdin using perl?
by gopikavi (Initiate) on May 09, 2017 at 11:11 UTC
    i want to read my data directly from STDIN?
      Reading STDIN and if exists inside my file then it should print the whole file?

        "Reading STDIN and if exists inside my file then it should print the whole file?"

        Are you questioning yourself? You should post a clear statement of the problem you are experiencing, any source data, your desired output. Before posting again read and understand How do I post a question effectively?.