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

Re: Reading particular line which repeats itself many times in text

by chessgui (Scribe)
on Jan 28, 2012 at 08:30 UTC ( [id://950489]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @begin_blocks=split /BEGIN $name/,$string_containing_blocks;
    
    my $block=$begin_blocks[1];
    
    $block=~s/END\s*$//;
    
  2. or download this
    my @begin_blocks=split /BEGIN $name/,$string_containing_blocks;
    
    ...
    $block=~s/END\s*$//;
    
    $block=~s/BEGIN_/BEGIN/g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found