[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [Fun With Perl] Package Retrofit



Chris Nandor wrote:

>     if (not can Mozilla::LDAP::Entry 'getLDIFrecords') {
>         *Mozilla::LDAP::Entry::getLDIFrecords = sub {
>             [snip]
>         };
>     }
>
> It does the same thing, but avoids the eval.  You don't need a separate
> package declaration, you can just put it in the sub declaration.

Huh?  Would you give an example, please?  Or did you mean to say I don't need
any package declaration at all (as in the example above)?


==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org