in reply to curly braces around a lexical file handle

I appreciate the clearly-stated question about print, and the very informative replies it inspired, but I had to wonder about this bit in the OP:
I'm modifying a program which uses IPC::Open3::open3 to fire up mysql and query the database.

I wonder if it might be easier to just use DBI (which, if told to connect to a mysql database, will automatically use DBD::mysql).

Replies are listed 'Best First'.
Re^2: curly braces around a lexical file handle
by rastoboy (Monk) on May 31, 2010 at 21:25 UTC
    Thanks to all for these wonderful responses. Not only am I reassured that I'm not doing something weird without knowing it, but I feel like I understand several other things better, as well :-)

    btw the reason I can't use DBI is because the script is intended to run on "foreign" machines where we may not have the luxury of installing modules (and we're doing fairly simple queries as well).

      btw the reason I can't use DBI is because the script is intended to run on "foreign" machines where we may not have the luxury of installing modules (and we're doing fairly simple queries as well).
      But you do have the luxury of installing programs?

      What's the difference? What if you call DBI a program, is it then allowed to be installed?