Re: Save to memory temporarily

2010-03-23 Thread Shlomi Fish
Hi raphael()! Let me comment on your code. On Monday 22 Mar 2010 13:30:09 raphael() wrote: > On Thu, Mar 18, 2010 at 7:30 PM, Peter Scott wrote: > > On Wed, 17 Mar 2010 20:19:01 +0530, raphael() wrote: > > > Hello, > > > > > > Is there a way to save/store downloaded data (using WWW::Mechanize)

Re: Save to memory temporarily

2010-03-22 Thread raphael()
any one here?

Re: Save to memory temporarily

2010-03-22 Thread raphael()
On Thu, Mar 18, 2010 at 7:30 PM, Peter Scott wrote: > On Wed, 17 Mar 2010 20:19:01 +0530, raphael() wrote: > > > Hello, > > > > Is there a way to save/store downloaded data (using WWW::Mechanize) in > > memory (temporarily) > > rather than writing it to disk. Like store 10MB in memory and then fl

Re: Save to memory temporarily

2010-03-20 Thread raphael()
On Thu, Mar 18, 2010 at 11:17 PM, Linux Expert wrote: > > > > > > Not easily. WWW::Mechanize is a LWP::UserAgent; look at the > > documentation for that module and see the :content_cb hook. Write a > > handler to concatenate data in memory until you reach 10MB and then flush > > to disk, writing

Re: Save to memory temporarily

2010-03-18 Thread Linux Expert
> > > Not easily. WWW::Mechanize is a LWP::UserAgent; look at the > documentation for that module and see the :content_cb hook. Write a > handler to concatenate data in memory until you reach 10MB and then flush > to disk, writing the remainder there. Set read_size_hint to below 10MB. > > This i

Re: Save to memory temporarily

2010-03-18 Thread Peter Scott
On Wed, 17 Mar 2010 20:19:01 +0530, raphael() wrote: > Hello, > > Is there a way to save/store downloaded data (using WWW::Mechanize) in > memory (temporarily) > rather than writing it to disk. Like store 10MB in memory and then flush > it to the hard disk when data reaches 10MB. Not easily. WW

Re: Save to memory temporarily

2010-03-17 Thread raphael()
On Wed, Mar 17, 2010 at 10:09 PM, Shlomi Fish wrote: > Hi raphael()! > > I'll comment on your code below. > > On Wednesday 17 Mar 2010 18:23:29 raphael() wrote: > > On Wed, Mar 17, 2010 at 9:05 PM, Shlomi Fish > wrote: > > > On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > > > > Hello, > > >

Re: Save to memory temporarily

2010-03-17 Thread Shlomi Fish
Hi raphael()! I'll comment on your code below. On Wednesday 17 Mar 2010 18:23:29 raphael() wrote: > On Wed, Mar 17, 2010 at 9:05 PM, Shlomi Fish wrote: > > On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > > > Hello, > > > > > > Is there a way to save/store downloaded data (using WWW::Mechan

Re: Save to memory temporarily

2010-03-17 Thread raphael()
On Wed, Mar 17, 2010 at 9:05 PM, Shlomi Fish wrote: > On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > > Hello, > > > > Is there a way to save/store downloaded data (using WWW::Mechanize) in > > memory (temporarily) > > rather than writing it to disk. Like store 10MB in memory and then flush

Re: Save to memory temporarily

2010-03-17 Thread Shlomi Fish
On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > Hello, > > Is there a way to save/store downloaded data (using WWW::Mechanize) in > memory (temporarily) > rather than writing it to disk. Like store 10MB in memory and then flush it > to the hard disk when data reaches 10MB. Yes, standard Perl

Save to memory temporarily

2010-03-17 Thread raphael()
Hello, Is there a way to save/store downloaded data (using WWW::Mechanize) in memory (temporarily) rather than writing it to disk. Like store 10MB in memory and then flush it to the hard disk when data reaches 10MB. Its just a curiosity since utorrent and jdownloader (Java) do this (though I cann