Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: How to extract certain range of text and display it?

by Anonymous Monk
on Oct 15, 2013 at 06:48 UTC ( #1058243=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058243]
help
Chatterbox?
[holli]: are you sure? or are they mere prjections of my hallucinating mind?
shmem feels uneasy over his guess of the tune for silent night, perl 6 night
[holli]: https://www. youtube.com/watch? v=6H_9QEc6vA8
[holli]: meh, silent night
[holli]: also sad
[shmem]: halluzination beats newspaper in realism, sometimes

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-09-22 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?