Re: Problem with Storable on Windows
- From: Thomas Kratz <ThomasKratz@xxxxxxxxxxxxxxxx>
- Date: Tue, 05 Jul 2005 10:56:13 +0200
Matthew Keene wrote:
I'm trying to use Storable in conjunction with IPC::Open3 in order to
send complex data structures between the parent and child processes. Unfortunately, although this seems to work a treat under Linux (Fedora
Core 4), it doesn't seem to work on Windows, returning the following
message:
Magic number checking on storable file failed at blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable\fd_retrieve.al) line 323, at D:\Data\Perl\DBAsyncWorker.pl line 13
[code snipped]
You don't have a problem with Storable, but with IPC::Open3. I modified your code a bit and found that the data the caller sent never made it to the client. So you try to thaw an empty string, which Storable complains about. Reading from the pipe in the worker never succeeds. I'm not an expert, but googling for problems with IPC::Open3 on Windows will show a few threads. If you don't find a solution there, I would suggest doing the communication over sockets. At least that works (it does for me).
This could perhaps all be related to select working only on sockets under Windows.
Thomas
--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-
.- References:
- Problem with Storable on Windows
- From: Matthew Keene
- Problem with Storable on Windows
- Prev by Date: Re: NameSpace for pure-perl TCP reassembly
- Next by Date: Possible Issue with HTML::TreeBuilder?
- Previous by thread: Problem with Storable on Windows
- Next by thread: BASIC language.
- Index(es):
Relevant Pages
|