A scope question

2005-07-05 Thread Andrew Kennard
Hi all I've got the basic hang of scope of vars in Perl which is a bit different to other languages I've used. Having split a large program into packages I would like to use a global var across multiple packages. Perl does not seem to have a 'C' type 'extern' command to say a var is declared i

RE: A scope question

2005-07-05 Thread Bob Showalter
Andrew Kennard wrote: > Hi all > > I've got the basic hang of scope of vars in Perl which is a bit > different to other languages I've used. > > Having split a large program into packages I would like to use a > global var across multiple packages. Perl does not seem to have a 'C' > type 'extern'

Re: A scope question

2005-07-05 Thread Andrew Kennard
Thanks very much for your detailed reply . things are now much clearer if a little different from what I am used to ;) "Bob Showalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Andrew Kennard wrote: >> Hi all >> >> I've got the basic hang of scope of vars in Perl which is