Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Parsing out mulitiple blocks of interesting data in files / ignoring other contents

by Athanasius (Archbishop)
on Mar 02, 2016 at 13:40 UTC ( [id://1156657]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parsing out mulitiple blocks of interesting data in files / ignoring other contents
in thread Parsing out mulitiple blocks of interesting data in files / ignoring other contents

You’ve omitted this part of the code:

elsif (/^\s*shutdown/) { @block = (); $in_block = 0; }

which tests for the “ignore entire block” keyword shutdown — so of course blocks containing that word are still being printed.

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

  • Comment on Re^3: Parsing out mulitiple blocks of interesting data in files / ignoring other contents
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Parsing out mulitiple blocks of interesting data in files / ignoring other contents
by GeorgMN (Acolyte) on Mar 02, 2016 at 13:52 UTC
    Works beautifully! Thank you kindly and greetings. GT

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found