in reply to Re^3: How do i search and extract commented lines from a file using perl?
in thread How do i search and extract commented lines from a file using perl?

I recommend the same logic, but let the -n switch handle the input and looping.
Bill
  • Comment on Re^4: How do i search and extract commented lines from a file using perl?