Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

The simplest perl Multi Line matching.

by dannyd (Sexton)
on Feb 08, 2011 at 07:52 UTC ( [id://886899]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    --------------------------------------------------------------
    Perl Progress
    --------------------------------------------------------------
     
    dannyd@cli>
    
  2. or download this
    #!/usr/bin/perl
    
    open (FH, "test.txt");
    ...
        print "Match!!\n" if ($_ =~ /^-+\nBG/ms);
    }
    close (FH);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://886899]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-16 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found