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

Re: [MacPerl-AnyPerl] Multi Platform Scripts



On Fri, 13 Aug 1999 21:41:31 -0400, Ronald J Kimball wrote:

>I rest my case.

You may rest your case all you like (;-), but I was merely trying to
point out:

 - why "use" does it's stuff at compile time, i.e. in an implied BEGIN
block
 - why the code phrase { eval "use ModuleName" } may not work as a
substitute
 - why replacing "use" with "require", even when accompanied with
"import", may not be good enough.

You usually need the (implied) "BEGIN", like it or not. The test inside
the BEGIN block looks like the cleanest approach. I think I would opt
for an external library file, only require()d on MacOS, and which
contains the "use" line, I guess, and a different library file for Unix.

	Bart.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org