Re: references and objects

2003-11-16 Thread R. Joseph Newton
angie ahl wrote: > Hi everyone > > I'm failing to find something in the manuals (or at least the bit I'm > missing ;) > > I have an package called "Event" > > in it I have a subroutine called EventList > > sub EventList { > my ($class, %arg) = @_; > # load of code here > return ([EMAIL

Re: references and objects

2003-11-16 Thread Steve Grazzini
On Sun, Nov 16, 2003 at 11:42:48AM -0500, Hacksaw wrote: >> Pettiness says that you mean the package is a /class/ :) > > That's pedantism. ;-) It's "pedantry". :-) -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: references and objects

2003-11-16 Thread Hacksaw
>Pettiness says that you mean the package is a /class/ :) That's pedantism. ;-) BTW, mail to [EMAIL PROTECTED] bounced. -- Establish the principle. http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: references and objects

2003-11-16 Thread Rob Dixon
Angie Ahl wrote: > > Sorry I forgot to mention that the package IS an object ;) Pettiness says that you mean the package is a /class/ :) Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: references and objects [Solved]

2003-11-15 Thread drieux
On Friday, Nov 14, 2003, at 07:19 US/Pacific, angie ahl wrote: [..] I changed my code so the variables aren't references; sub EventList { my ($class, %arg) = @_; # load of code here return ([EMAIL PROTECTED], $startdate, $enddate); } And then called it like so: my @tempres = $event->

Re: references and objects

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, angie ahl said: >I want to return an array and 2 scalars. Well, you're returning an array reference and two scalar references. I don't think the scalars need to be referenced, but I would probably keep the array reference. >sub EventList { >my ($class, %arg) = @_; ># load of

Re: references and objects

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 11:40:51AM +, angie ahl wrote: > I want to return an array and 2 scalars. > > sub EventList { > my ($class, %arg) = @_; > # load of code here > return ([EMAIL PROTECTED], \$startdate, \$enddate); > } > > So far so good (I think) You're actually returning r

Re: references and objects [Solved]

2003-11-14 Thread angie ahl
I changed my code so the variables aren't references; sub EventList { my ($class, %arg) = @_; # load of code here return ([EMAIL PROTECTED], $startdate, $enddate); } And then called it like so: my @tempres = $event->EventList(skip=>0, max=>10); my $EventList = @tempres[0]; m

Re: references and objects

2003-11-14 Thread angie ahl
Sorry I forgot to mention that the package IS an object ;) on 14/11/03 angie ahl said: >Hi everyone > >I'm failing to find something in the manuals (or at least the bit I'm >missing ;) > >I have an package called "Event" > >in it I have a subroutine called EventList > >I want to return an array a