Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Can I move a substitution string into a constant?

by tcf22 (Priest)
on Nov 27, 2003 at 21:24 UTC ( [id://310603]=note: print w/replies, xml ) Need Help??


in reply to Can I move a substitution string into a constant?

Perl constants are actually functions, so try
my $tmp = quotemeta(TABLE_NAME . '.'); $stmt =~ s/$tmp//g;

Update: Fixed code, because I didn't test before I posted.

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-25 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found