Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Search for a BLOCK of text and selectively replace

by PrakashK (Pilgrim)
on Mar 22, 2002 at 05:40 UTC ( #153492=note: print w/replies, xml ) Need Help??


in reply to Search for a BLOCK of text and selectively replace

Use the range operator.
open (RUNSET, "<text.txt" ) || die "Can't access test\n"; while (<RUNSET>) { if (/^\*DESCRIPTION$/ .. /^\*END$/) { # do any substitutions } } close RUNSET;
/prakash

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://153492]
help
Chatterbox?
LanX was googling for Kirchenhügel ... till he realized someone is translating Church-Hill to German... (slapping forhead)
[erix]: ha :) (confusion)++
[erix]: just trying to keep you alert ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-12-12 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?