Can't access CGI object in required file?

2001-06-21 Thread Kevin Hancock
Hi Guys I was hoping this would be a problem because I am struggling with the whole scope thing in Perl but here goes. A section of my code. require "$LIBRARY_DIR/castime_html.pm"; use CGI; # load CGI routines use strict 'vars'; my $q = new CGI; #

Re: Can't access CGI object in required file?

2001-06-22 Thread Curtis Poe
--- Kevin Hancock <[EMAIL PROTECTED]> wrote: > Hi Guys > > I was hoping this would be a problem because I am struggling with the whole > scope thing in Perl but here goes. > > A section of my code. > > require "$LIBRARY_DIR/castime_html.pm"; > use CGI; # load CGI ro

Re: Can't access CGI object in required file?

2001-06-24 Thread Kevin Hancock
Hi Thanks for the answer. It clears up a lot, now the question is how? I have tried passing the object but cannot sort the syntax. I wil now go play with creating a new object as well but I would have expected that to not contain the data I want. Easy enough to test. Thanks Kevin Modules shou