in reply to Re^7: Memory mapped file questions
in thread Memory mapped file questions

but the name of file exist and is Test , i run a MSDN example in C# and in C++ , in msdn i have first program create a memory mapped file , second program (i dont run a second program by main program), read perfect a string memory mapped file , therefore i simply want do it with perl. Why i do this ? simply i want understand how work a file mapped, and look how is complicated or not , in many program language , but if you confirm perl don't do it because for perl is necessary have a real file in HDD , no problem

Replies are listed 'Best First'.
Re^9: Memory mapped file questions
by Corion (Patriarch) on Oct 11, 2020 at 07:55 UTC

    If that works, then you can likely do the same in Perl. But as I don't know your C++ code to access that memory mapped file, you will have to find out yourself what API calls C# uses and how to access these from Perl.

    CPAN has some modules for memory mapping files, see Mmap, maybe you find something there. Or alternatively, maybe you can open the file just as a file, see open. In any case, you will have to find out what works for you, because I'm not going to learn what Windows API the C# code uses.