in reply to STDIN question

There are modules which do this: File::Slurp for example..

C.

Replies are listed 'Best First'.
Re: Re: STDIN question
by rkg (Hermit) on Jun 19, 2003 at 14:43 UTC
    And how do I reference STDIN for File::Slurp? Sorry to be slow on this...rkg

      ++hmerrill

      # test2.pl use File::Slurp; $all_of_it = read_file('-'); print $all_of_it; __END__ $ >echo -e "klöhlkhklhj\nlkjhlkhlkhkk\nlkjhklhlkhklh" | perl test2.pl klöhlkhklhj lkjhlkhlkhkk lkjhklhlkhklh

      regards,
      tomte


      Hlade's Law:

      If you have a difficult task, give it to a lazy person --
      they will find an easier way to do it.