Jenda Krynicky wrote:
From: "John W. Krahn" <[EMAIL PROTECTED]>
Chas. Owens wrote:
On Jan 22, 2008 10:42 AM, Jonathan Mast <[EMAIL PROTECTED]> wrote:
I have a perl module that extensively uses a variable named "$main", which
is apparently bound to the script that calls the library.

I can't find where the exact semantics of this automagic variable defined.
snip

There is no variable named $main unless you create it.  You may be
mistaking the main package in variables like $main::foo.
Or variables like $main'foo.

I don't think I've ever seen this outside Obfu(scation) or golf.
It's good to know something like that is possible, but please don't use that. Unless of course you do want to confuse someone ;-)

So I take it that you have never used Per4?   :-)


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to