Re: about the var's scope

2006-01-16 Thread Shawn Corey
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: about the var's scope

2006-01-16 Thread Jeff Pang
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

Re: about the var's scope

2006-01-16 Thread John Doe
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

Re: about the var's scope

2006-01-15 Thread Jeff Pang
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: >

Re: about the var's scope

2006-01-15 Thread John Doe
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

Re: about the var's scope

2006-01-15 Thread Shawn Corey
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

Re: about the var's scope

2006-01-15 Thread Jeff Pang
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

Re: about the var's scope

2006-01-15 Thread John Doe
[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

Re: about the var's scope

2006-01-15 Thread Jeff Pang
-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

Re: about the var's scope

2006-01-15 Thread Shawn Corey
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