RE: How do I create arrays in OO format?

2009-11-12 Thread Brian Raven
Jason Lowder <> wrote: > Hi, > > I'm trying to make my perl source as OO as possible (fairly new to > it) and while I can set values in set methods, I can't seem to figure > out how to set arrays or hashes this way. > > My code: > > package SQLfunctions; > ... > sub createPositionData { >

Re: How do I create arrays in OO format?

2009-11-12 Thread Olivier Mengué
2009/11/12 Jason Lowder > Hi, > > I'm trying to make my perl source as OO as possible (fairly new to it) > and while I can set values in set methods, I can't seem to figure out > how to set arrays or hashes this way. > > My code: > > package SQLfunctions; > If you name your package "functions",

How do I create arrays in OO format?

2009-11-12 Thread Jason Lowder
Hi, I'm trying to make my perl source as OO as possible (fairly new to it) and while I can set values in set methods, I can't seem to figure out how to set arrays or hashes this way. My code: package SQLfunctions; ... sub createPositionData { my ($self, @posData) = @_; $self->{...@_p