RE: passing database data to a sub



Hawkes, Mick I <mailto:Michael.I.Hawkes@xxxxxxxxxxxxxxxx> wrote:

: [Charles] said:
:
: Second, GetOfficers() is called as a subroutine, not as a method
: of an object. But it is written as an object method. Try this.
: $template->param( db_loop => $self->GetOfficers() );
:
: I'm not sure of the difference, why isn't it a subroutine? I not
: completely sure about this 'shift' thing anyway :-)

Read the 'A Method is Simply a Subroutine' section of 'perlobj'.


HTH,

Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328


.



Relevant Pages

  • Re: reference to object method
    ... an object method is just a subroutine ... and one can store a reference to a subroutine. ... my $class = shift; ...
    (comp.lang.perl.misc)
  • Same subroutine, 2 names.
    ... I have a subroutine (object method) called 'Populate' but I want to ... Prev by Date: ...
    (perl.beginners)
  • Re: Baffling .NET Threading issue.
    ... Start as the last instruction in a subroutine, but if you have a long ... unyielding process after the Start statement your new thread may ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • User RPL and local variables.
    ... Can I assign the output of a subroutine in a User RPL program to a local ... Andrew ... Prev by Date: ...
    (comp.sys.hp48)
  • Re: generic module procedures with function arguments
    ... > As far as I know, in the non-generic case the calling routine ... > does not need to know if the name being passed is a subroutine ... last name at domain dot net | experience comes from bad judgement. ... Prev by Date: ...
    (comp.lang.fortran)