Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Select data between a START and END pattern

by Thelonius (Priest)
on May 01, 2003 at 20:51 UTC ( #254808=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @a = 1 .. 7;
    
  2. or download this
    while (something) {
      if (EXPRSTART .. EXPREND) {
         doit();
       }
    }
    
  3. or download this
    $inmatch = 0;
    while (something) {
    ...
        $inmatch = 0;
      }
    }
    
  4. or download this
    while (something) {
      if (EXPRSTART ... EXPREND) {
         doit();
       }
    }
    
  5. or download this
    $inmatch = 0;
    while (something) {
    ...
        $inmatch = 0;
      }
    }
    
  6. or download this
    while (<>) { print if /A/ .. /B/ }
    
  7. or download this
    while (<>) { print if /A/ ... /B/ }
    
  8. or download this
    Here's some text before
    Some text with an A
    ...
    more useless lines 1
    more useless lines 2
    more useless lines 3
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2016-10-01 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (6 votes). Check out past polls.