Joe Schaefer wrote: > Geoffrey Young <[EMAIL PROTECTED]> writes: > > [...] > > >>I'm not as familiar with brigades as I should be, but does >>it save you the iteration process or is it just a substitute for >>reading to a buffer? > > > It'd save you the iteration process (it's an APR::Brigade method, > not APR::Bucket), but would not destroy the buckets within the > brigade (hmm, does APR::Brigade have a DESTROY method?). > > The advantage here is you'd be able to accomplish this > in one or two lines of perl, ie. > > my $upload_data = $req->upload('file')->bb->flatten;
oooh, nice. I can definitely see that being a useful idiom. let's see about opening it up. --Geoff -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html