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

Re: How to process multiple input files?

by John M. Dlugosz (Monsignor)
on May 23, 2011 at 00:42 UTC ( #906220=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $replacement= '\t<?php include(\$_SERVER['DOCUMENT_ROOT'].\"\/inclu
    +des\/footer.php\"); ?>\n\n';
    
    s{ </div> .*? \K (?=</div>) }
     { $replacement }
     x;
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
       $filecontents =~ s { </div> .*? \K (?=</div>) } { $replacement } x;
       print $filecontents;
       }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://906220]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-03-30 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.