> I would have thought in this case you would want the BLOCK form of
> 'eval' rather than the EXPR form? Or does it matter? Gurus can you
> expound on the differences in this case?
>
> Give:
>
> eval { use Tk };
> if ($@) {
> # module not ok, etc.
> }
>
> A try. perldoc -f eval
>
> http://danconia.org
>
"use" is done at compile time ( i.e. in a BEGIN {} if I remember correctly ). In order
to check for a module, you have to use require() in an eval block { } to check for the
presence of a module. If you have to import symbols, use import().
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]