Jeff Pang wrote:
I think the only difference between the two is Stat's code do the things of
sharing vars across modules really.
Under mod_perl,the situation is very different from common CGI environment,and
the vars sharing sometimes is useful and needed.
I hope I'm correct.If not,the criticis
re welcome.
-Original Message-
>From: John Doe <[EMAIL PROTECTED]>
>Sent: Jan 16, 2006 4:09 AM
>To: beginners@perl.org
>Subject: Re: about the var's scope
>
>Shawn Corey am Montag, 16. Januar 2006 04.12:
>[...]
>> > Ok, it would be interesting to look d
Shawn Corey am Montag, 16. Januar 2006 04.12:
[...]
> > Ok, it would be interesting to look deeper into the mess of different
> > variables all named with the same name $q, exported across the modules,
> > overwritten by several imports...
> >
> > What do you want to achieve with your code? It look
That's a good end for us all.Thanks for Shawn and John too.
-Original Message-
>From: John Doe <[EMAIL PROTECTED]>
>Sent: Jan 16, 2006 2:09 PM
>To: beginners@perl.org
>Subject: Re: about the var's scope
>
>Shawn Corey am Montag, 16. Januar 2006 04.12:
>
Shawn Corey am Montag, 16. Januar 2006 04.12:
> John Doe wrote:
> > [reordered to bottom style posting]
> >
> > Jeff Pang am Montag, 16. Januar 2006 01.59:
> >>Thanks for Shawn.The main script can see the global var $q coming from
> >>module,since the main script import this symbol via 'use My::HTM
John Doe wrote:
[reordered to bottom style posting]
Jeff Pang am Montag, 16. Januar 2006 01.59:
Thanks for Shawn.The main script can see the global var $q coming from
module,since the main script import this symbol via 'use My::HTML
qw($q)'.But the modules have no any importing behavior,why the
n Doe <[EMAIL PROTECTED]>
>Sent: Jan 16, 2006 9:48 AM
>To: beginners@perl.org
>Subject: Re: about the var's scope
>
>[reordered to bottom style posting]
>> -Original Message-
>>
>> >From: Shawn Corey <[EMAIL PROTECTED]>
>> >Sent: Jan 15
[reordered to bottom style posting]
> -Original Message-
>
> >From: Shawn Corey <[EMAIL PROTECTED]>
> >Sent: Jan 15, 2006 10:58 PM
> >To: beginners@perl.org
> >Subject: Re: about the var's scope
> >
> >Jeff Pang wrote:
> >> Hell
-Original Message-
>From: Shawn Corey <[EMAIL PROTECTED]>
>Sent: Jan 15, 2006 10:58 PM
>To: beginners@perl.org
>Subject: Re: about the var's scope
>
>Jeff Pang wrote:
>> Hello,lists,
>>
>> Seeing these code below please.I can't know
Jeff Pang wrote:
Hello,lists,
Seeing these code below please.I can't know why the var defined in the main
script can been accessed in the modules that used by the main script?thanks.
From `perldoc vars`:
While the vars pragma cannot duplicate the effect of package lexicals
(total transparen
10 matches
Mail list logo