in reply to (jeffa) 3Re: seeking different ways to slice a 2-d array
in thread seeking different ways to slice a 2-d array
And they'll access the same variable. But if I start refering to %CACHE inside some other routine I get an error just like if %CACHE had been a lexical. I like that.sub read_cache { our %CACHE; ... } sub write_cache { our %CACHE; ... }
So, I guess I'm pretty happy with our. The only reason I want more education is that I learned about lexical and package variables as totally separate!!! and now they ain't... Which is cool, but also pretty bizarre.
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (jeffa) 3Re: seeking different ways to slice a 2-d array
by Anonymous Monk on May 14, 2002 at 20:46 UTC |