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

Re: [Fun With Perl] Package Retrofit




> 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)?

perldoc -f package, please.

It only sets the default package for any unqualified symbols that follow.

So

	{
	  package Foo;
	  $bar = 1;
	}

is (FPP) the same as

	$Foo::bar = 1;

Same goes for other types of symbols, including subs.

John Porter



==== 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