Re: OOB and dispatch table

2009-11-01 Thread Steve Bertrand
John W. Krahn wrote: > Steve Bertrand wrote: >> Hi all, [ huge snip ] >> ...or any variant of trying to use the method-call syntax within a >> dispatch table coderef. > > How and where is _find_plan_by_id() defined? It's defined within its own class ( ie: file/package scope). The definition is

Re: OOB and dispatch table

2009-11-01 Thread Steve Bertrand
Shlomi Fish wrote: > On Saturday 31 Oct 2009 02:38:11 Steve Bertrand wrote: >> Steve Bertrand wrote: >>> What I don't understand, is >>> why I have to pass in $self as a param to the dispatch table. What >>> didn't work is this: >>> >>> >>> sub perform_find { >>> >>> my $self= shift; >>>

Re: OOB and dispatch table

2009-10-31 Thread Shlomi Fish
On Saturday 31 Oct 2009 02:38:11 Steve Bertrand wrote: > Steve Bertrand wrote: > > Hi all, > > > > Within a CGI environment, I'm trying to do a dispatch table test, but > > can't figure out how to call the coderef as a method. Here is the > > working code. I'll describe what doesn't work afterwards

Re: OOB and dispatch table

2009-10-30 Thread John W. Krahn
Steve Bertrand wrote: Hi all, Hello, Within a CGI environment, I'm trying to do a dispatch table test, but can't figure out how to call the coderef as a method. Here is the working code. I'll describe what doesn't work afterwards: sub perform_find { my $self= shift; my $find_th

Re: OOB and dispatch table

2009-10-30 Thread Steve Bertrand
Shawn H Corey wrote: >>> sub perform_find { >>> >>> my $self= shift; >>> >>> my $find_this = $self->query->param( 'find_this' ); >>> my $search_data = $self->query->param( 'search_data' ); >>> >>> my %find_commands = ( >>> >>> # I'm trying to call the method on myself >>>

Re: OOB and dispatch table

2009-10-30 Thread Shawn H Corey
Steve Bertrand wrote: > Steve Bertrand wrote: >> Hi all, >> >> Within a CGI environment, I'm trying to do a dispatch table test, but >> can't figure out how to call the coderef as a method. Here is the >> working code. I'll describe what doesn't work afterwards: >> >> sub perform_find { >> >> m

Re: OOB and dispatch table

2009-10-30 Thread Steve Bertrand
Steve Bertrand wrote: > Hi all, > > Within a CGI environment, I'm trying to do a dispatch table test, but > can't figure out how to call the coderef as a method. Here is the > working code. I'll describe what doesn't work afterwards: > > sub perform_find { > > my $self= shift; > > m