
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Require in Global UserTag
mheins@redhat.com writes:
> Quoting Stefan Hornburg (Racke) (racke@linuxia.de):
> > Thanks, Mike, this was really a time-saver.
> >
> > But I suggest to change the distributed tags accordingly.
> > There is IMHO no advantage for this check within
> > the sub.
> >
>
> All of the distributed tags work in the way they were intended.
> The ones that do the require at runtime do it that way because:
>
> 1. Every time you "use" a module, it adds to core size.
> 2. It works fine if you call it in ITL, just not if
> called in embedded Perl.
>
> ALl that needs be done is just to move the require above the
> sub if you want to be able to call it with $Tag->tagname().
Yes, (1) got my attraction. (2) is just bad doc's :-)
Ciao
Racke
--
Racke happily hacks Interchange and maintains Debian packages like Courier.
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users