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
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]
>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: [
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]
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->
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
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
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
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