|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Answer: Calling a method within a double-quoted string? |
| ( #17474=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > object-oriented programming > Calling a method within a double-quoted string? contributed by btrott
For the DBI case, the correct answer is definitely placeholders. However, in the general case, consider Interpolation. It's pretty nifty. It lets you define "arbitrary interpolation semantics". From its man page: For your need, you could use this: Which is quite handy. Still, in your particular case, placeholders are better.
|
|
||||||||||||||||||