Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Search for a BLOCK of text and selectively replace

by Rhodium (Scribe)
on Mar 22, 2002 at 04:20 UTC ( [id://153485]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ; This is a comment starts with semicolon
    *DESCRIPTION
    keyword = foo
    ...
    blah
    bla
    *END
    
  2. or download this
    #!/bin/perl -w
    #
    # Slurp in the file
    ...
    # Assuming I have the DESCRIPTION block do a search
    # What if i Didn't find it, add it at very end before
    # the *ENDS.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-16 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found