Hello List: I am trying to go through a folder of php scripts to add a
database prefix to lines that have a select statement. Since the database
prefix will differ, I am simply trying to add:

".$database_prefix."

to those lines. For example, instead of the line looking like: $sql =
"SELECT * FROM bs_services"; I need to have it look like: $sql = "SELECT *
FROM ".$database_prefix."_bs_services";

I have tried a variety of Perl examples including the the code below, but
it gives an error.

$_ =~ s/bs_/".$database_prefix."_bs/g;

Can anyone give me some help on this? Maybe it's due to looking at php code
all day but I would really like to get this done before going to bed. It's
already 3:40 AM here but oh well... Any help is appreciated!

--

Reply via email to