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

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.

Replies are listed 'Best First'.
Re^7: How to extract certain range of text and display it?
by marto (Cardinal) on Oct 15, 2013 at 07:38 UTC

    "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.

Re^7: How to extract certain range of text and display it?
by Anonymous Monk on Oct 15, 2013 at 07:36 UTC