What error? (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.)
> On Feb 1, 2014, at 2:40 AM, Omega -1911 <1911...@gmail.com> wrote: > > 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! > > -- > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/