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

Re: [MacPerl-AnyPerl] Multi Platform Scripts



On Fri, Aug 13, 1999 at 08:32:21PM +0000, Bart Lateur wrote:
> On Mon, 9 Aug 1999 11:54:29 -0400, Ronald J Kimball wrote:
> 
> >use Module is documented to be exactly equivalent to
> >
> >BEGIN { require Module; import Module }
> >
> >I'm skeptical that anything could be done with use that could not be done
> >with require/import.
> 
> We were all focussing one the "import" part. But even without that,
> use() is different than require(). Here's an example.

I did not say that use is the same as require.  I said that there is
nothing that can be done with use that cannot be done with require/import.


Which you go on to demonstrate:

> This does work too:
> 
> 	BEGIN {
> 		require Test;
> 	}
> 	test 1,2;
> 
> 


I rest my case.


Ronald

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