Re: Scoping question

2002-09-19 Thread Michael Fowler
On Thu, Sep 19, 2002 at 09:39:54AM +0100, Gary Stainburn wrote: > I've got a problem understanding a scoping issue I've got. http://perl.plover.com/FAQs/Namespaces.html is a good online resource for learning about scoping. > I've got 2 hashes which I defined inside the sub that generates the f

Re: Scoping question

2002-09-19 Thread david
Gary Stainburn wrote: > Hi all, > > I've got a problem understanding a scoping issue I've got. > > I've got 2 hashes which I defined inside the sub that generates the form > thus: > > sub do_form() { > my ($error)=@_; > my %dships=('X'=>'','L'=>'Leeds','D'=>'Doncaster'); > my %depts=('X'