Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-09-17 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls