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

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


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


Reply via email to