On Tue, 25 Mar 2003, Eugene van der Pijll wrote:

> > other than:
> >  eval("use DateTime::Set");
> >  croak("Couldn't load DateTime::Set:".$@) if $@;
>
> Block-eval is better than string-eval. Also I think 'require' is used
> more often than 'use' in these kind of constructs, but I don't think
> there's a material difference.

You can't block-eval a use, since use is handled at compile time.  This
could be done as:

 require DateTime::Set

, since calling DateTime::Set->import isn't necessary.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to