Skip Menu |

This queue is for tickets about the File-Map CPAN distribution.

Report information
The Basics
Id: 117795
Status: resolved
Priority: 0/
Queue: File-Map

People
Owner: Nobody in particular
Requestors: dpetrov [...] nes.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Mapping handle to new hash element
Date: Mon, 12 Sep 2016 17:34:28 +0300
To: <bug-File-Map [...] rt.cpan.org>
From: "Dmitry Petrov" <dpetrov [...] nes.ru>
Intended or bug? Code sample: use File::Map qw/map_handle/; my $h; open $h, "c:\\windows\\win.ini"; my %hash; map_handle $hash{map}, $h; warn $hash{map}; Prints nothing. While changing hash to scalar works: my $m; map_handle $m, $f; warn $m; Prints file contents. Best regards, Dmitry Petrov, programmer, "New Economic School", phone: +7 (495) 956 9508 (ext.112) cell: +7 (916) 479 7492 <http://www.nes.ru/> www.nes.ru
On Mon Sep 12 10:34:54 2016, dpetrov@nes.ru wrote: Show quoted text
> Intended or bug? > Code sample: > > use File::Map qw/map_handle/; > my $h; > open $h, "c:\\windows\\win.ini"; > my %hash; > map_handle $hash{map}, $h; > warn $hash{map}; > > Prints nothing. > While changing hash to scalar works: > > my $m; > map_handle $m, $f; > warn $m; > > Prints file contents.
Hi Dimitry, Sorry for the delayed response, I had somehow missed this ticket. This is indeed a bug, and I fixed it in 0.65. Thanks for the clear report. Leon