[Mpls-pm] Stupid peel question

Troy E. Hove Tausend ttausend at gmail.com
Wed Nov 14 19:55:11 PST 2007


  What you probably want is some variation of mmap.  A search on CPAN revealed 
several modules, mostly geared towards using anonymous mmap for shared 
interprocess memory.   Sys::Mmap looks promising as seems to be the latest 
derived from a predecessor just called Mmap, however the author admits that 
they are winging the XS implementation and it has some issues.

On Wednesday 14 November 2007 02:53 pm, Chris wrote:
> Let's say I have a 500mb file, and I want to use IO:File to write data
> to the middle of the file.
>
> I used w+ mode, seeked a position, wrote my string, then seeked to the
> end of the file, but it was still truncated to the end of the last
> write.  My goal was to keep the file size constantly at 500mb.
>
> Is there something I'm missing?  Will I have to resort to reading the
> entire file into memory?
>
> --
> Chris J
> Sent from my iPhone
> _______________________________________________
> Mpls-pm mailing list
> Mpls-pm at pm.org
> http://mail.pm.org/mailman/listinfo/mpls-pm

-- 
Troy E. Hove Tausend
ttausend at gmail.com
ttausend at comcast.net
ttausend at mn.rr.com


More information about the Mpls-pm mailing list