in reply to Calling a method within a double-quoted string?

Thanks folks! I already knew about placeholders but not all DBI drivers support them.

I always forget about sprintf. I guess I don't like seperating variables from the string.

Interpolation.pm looks really cool. I'll have to try it.

  • Comment on Answer: Calling a method within a double-quoted string?

Replies are listed 'Best First'.
RE: Answer: Calling a method within a double-quoted string?
by btrott (Parson) on Jun 10, 2000 at 04:37 UTC
    The Anonymous Monk said:
    > I already knew about placeholders but not all DBI > drivers support them.
    Actually, I believe placeholders are at least emulated in all DBI drivers. Even if the underlying database doesn't support placeholders or bound variables, DBI emulates the behavior internally. This is true, at least, of the MySQL driver. The appendix of the DBI book has more information.