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