in reply to How to read a text file, extract a records that contains a string, export the result into a temporary file

A minor tweak to a great solution by svenXY:
while (<STDIN>) { /TWO/ && print STDOUT $_; }

By the way,you really should go to your teacher and ask for a tutor.

  • Comment on Re: How to read a text file, extract a records that contains a string, export the result into a temporary file
  • Download Code