in reply to Re^4: How to extract certain range of text and display it?
in thread How to extract certain range of text and write into another file?

Um, why not simply "copy/paste" what others have posted? Up above?
  • Comment on Re^5: How to extract certain range of text and display it?

Replies are listed 'Best First'.
Re^6: How to extract certain range of text and display it?
by annel (Novice) on Oct 15, 2013 at 07:30 UTC
    Do you mean this one?
    use Modern::Perl; { local $/ = ".EON\n\n"; while ( my $record = <DATA> ) { say "I found: $record"; # ... now do something with $record ... } }
    use Modern::Perl prompts to give error.

      "use Modern::Perl prompts to give error."

      Something like this:

      Can't locate Modern/Perl.pm ...

      If so, install the module:

      cpan Modern::Perl

      If this isn't the problem you're going to have to be more specific. Please read and understand How do I post a question effectively? to find out how to help us help you.