Subject: | eval block around use statement |
The following non-idiom isn't quite doing what you expect:
eval { use DBD::SQLite; };
Since 'use' is compile time it happens before the eval is reached and
the eval is not protecting the use. So if DBD::SQLite is missing the
test will die.
If you use 'require' within the eval block, you get what you want.
Thanks,