On Fri, Mar 18, 2011 at 6:36 PM, Shawn H Corey <shawnhco...@gmail.com>wrote:

> On 11-03-18 06:21 PM, shawn wilson wrote:
>
>> my $a = Streamer->new;
>> my $app = sub {
>>  return [ 200, [ "Content-type" =>  "text/plain" ], $a->open_fh ];
>> }
>>
>> ... i think, but a part of me is thinking that if it were that simple, it
>> would have written like that (bad reasoning for thinking i'm wrong,
>> but...)
>>
>
> No, the [ 200, [ "Content-type" =>  "text/plain" ], $a->open_fh ] is an
> argument to the sub, not the return value.
>
>
>
an argument to what sub?
(it's obvious that i've missed the boat on this concept)

Reply via email to