in reply to Re^4: How to display first line of each record using the question code
in thread How to display first line of each record using the question code

no, sorry!

update

but this group ([^\n]) doesn't make much sense for me.

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^5: How to display first line of each record using the question code
  • Download Code

Replies are listed 'Best First'.
Re^6: How to display first line of each record using the question code
by SatisfyMyStruggles (Initiate) on May 18, 2013 at 17:51 UTC

    This particular code is trying to get the first line of each record

    ([^\n]*)
    while(<FileHandler>) if(/([^\n]*)\n(.*)/sm) { print "$1\n"; } }
      >    if(/([^\n]*)\n(.*)/sm)

      Which is not the code you posted before!!!

      Good luck! I'm on week end now. =)

      Cheers Rolf

      ( addicted to the Perl Programming Language)

      A reply falls below the community's threshold of quality. You may see it by logging in.