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

Re: [MacPerl-AnyPerl] Multi Platform Scripts



On Mon, 9 Aug 1999 11:07:46 -0400, Ronald J Kimball wrote:

>On Mon, Aug 09, 1999 at 10:56:28AM -0400, Chris Nandor wrote:
>> 
>> This isn't always ideal, because require/import is not exactly the same as
>> use
>
>Could you clarify that statement?  I believe that use is exactly the same
>as require/import in a BEGIN block.

Exactly. The BEGIN block is essential. Sometimes, the module changes how
the compiler perceives the Perl code. For example, I'm pretty sure this:

	require strict; strict->import(qw(vars));

will not do the same to the rest of your code, as a plain 

	use strict qw(vars);

	Bart.

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