[ABE.pm] regex problem?

Faber Fedor faber at linuxnj.com
Wed Mar 23 18:02:55 PST 2005


I have a file (test.php) that contains lines like this:

    <? include("content/navstripe.html"); ?>

I want to change those line to look like this:

    <?php include("content/navstripe.html"); ?>

So I do this (and several variations):

    perl -i.bak -e 's/\<\? /\<\?php /g' test.php

But nothing changes and no test.php.bak file is created.  Why?

-- 
 
Regards,
 
Faber                     

Linux New Jersey: Open Source Solutions for New Jersey
http://www.linuxnj.com





More information about the ABE-pm mailing list