Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Extract Block Of Text From Log

by tybalt89 (Prior)
on Nov 21, 2018 at 08:30 UTC ( #1226109=note: print w/replies, xml ) Need Help??


in reply to Extract Block Of Text From Log

#!/usr/bin/perl # https://perlmonks.org/?node_id=1226079 use strict; use warnings; my $file = "t.txt"; local $/ = "NRG location"; open IN, "<", $file or die "IN: $!\n"; print /.*parameters after change\V*\n(.*\n)\V*NRG location/s while <IN +>;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2021-05-14 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?