Skip Menu |

This queue is for tickets about the POE-Component-PreforkDispatch CPAN distribution.

Report information
The Basics
Id: 45093
Status: resolved
Priority: 0/
Queue: POE-Component-PreforkDispatch

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: argument not as docs specifiy
Invoked with this $poe_kernel->post( PreforkDispatch => 'new_request', { method => 'thumbnail' , params => [ "$uri" ] , verbose => 1 }); The method thumnail gets these arguments: STDERR:2 thumbnail: --- STDERR:2 thumbnail: - local STDERR:2 thumbnail: - http://api.cdmdata.com/ftproot/dealerfiles/9088/Photos/1GCEC19V16Z242351-1.jpg STDERR:2 thumbnail: ... The synopsis seems to say the argument order is my ($kernel, $heap, $request, $result) = @_[KERNEL, HEAP, ARG0, ARG1]; Which isn't what I'm seeing. The first arugment I'm getting is 'local', the second is the argument sent in the params.
The synopsis shows: my ($kernel, $heap, $from, $param1, $param2) = @_[KERNEL, HEAP, ARG0 .. $#_]; and in 'Request to response' shows: my ($kernel, $heap, $from, @args) = @_[KERNEL, HEAP, ARG0 .. $#_]; The 'local' value you're seeing is the default $from value. It's possible a previous version didn't mention these; I haven't looked. Eric On Thu Apr 16 18:09:34 2009, ECARROLL wrote: Show quoted text
> Invoked with this > $poe_kernel->post( PreforkDispatch => 'new_request', { > method => 'thumbnail' > , params => [ "$uri" ] > , verbose => 1 > }); > > The method thumnail gets these arguments: > STDERR:2 thumbnail: --- > STDERR:2 thumbnail: - local > STDERR:2 thumbnail: - > http://api.cdmdata.com/ftproot/dealerfiles/9088/Photos/1GCEC19V16Z242351- > 1.jpg > STDERR:2 thumbnail: ... > > > The synopsis seems to say the argument order is > my ($kernel, $heap, $request, $result) = @_[KERNEL, HEAP, ARG0, ARG1]; > Which isn't what I'm seeing. The first arugment I'm getting is > 'local', > the second is the argument sent in the params.