Re: trouble accessing fully qualified $main::variable contents

2008-07-07 Thread Andy_Bach
> why I am unable to print the value of the main package's variable (despite that I am using the fully qualified variable name)? Name "main::var" used only once: possible typo at C:\perlsrc\TEST.PL line 9. Use of uninitialized value in concatenation (.) or string at c:\perlsrc\TEST.PL line 9. H

Re: trouble accessing fully qualified $main::variable contents

2008-07-07 Thread Ben Bullock
2008/7/8 Greg Aiken <[EMAIL PROTECTED]>: > can anyone please explain why when I am in the subroutine, > and I attempt to print a variable that's been declared and assigned a value > in the main package - why I am unable to print the value of the main > package's variable (despite that I am using th

RE: trouble accessing fully qualified $main::variable contents

2008-07-07 Thread Steve Howard (PFE)
Use "our" instead of "my" our $var = "value"; Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Aiken Sent: Monday, July 07, 2008 5:01 PM To: perl-win32-users@listserv.ActiveState.com Subject: trouble accessing fully qualified $main::variable co

RE: trouble accessing fully qualified $main::variable contents

2008-07-07 Thread Jan Dubois
On Mon, 07 Jul 2008, Greg Aiken wrote: > can anyone please explain why when I am in the subroutine, and I > attempt to print a variable that's been declared and assigned a value > in the main package - why I am unable to print the value of the main > package's variable (despite that I am using the