in reply to Re^3: A Net::FTP and DBM::Deep clash
in thread A Net::FTP and DBM::Deep clash
The crash occurs when you call isa() on the kosovar key in the hash. This should be a perfectly valid call, which should return true. Instead, it crashes the VM. I conclude that this is probably a bug in Net::FTP, or ActiveState Perl on WinXP.#!/usr/bin/perl use strict; use warnings; use Net::FTP; $| = 1; my $words_all = { kosovar => [qw(33 35 28 44)], }; my %pack; while (my ($word, $url_list) = each %{$words_all}){ my $url_list_packed = pack 'v*', @{$url_list}; $pack{$word} = $url_list_packed; } warn "calling isa on kosovar\n"; warn UNIVERSAL::isa($pack{'kosovar'}, "ARRAY") . "\n"; warn "you should never see this, because it crashed.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: A Net::FTP and DBM::Deep clash
by BrowserUk (Patriarch) on Oct 13, 2005 at 06:01 UTC | |
|
Re^5: A Net::FTP and DBM::Deep clash
by wfsp (Abbot) on Oct 13, 2005 at 06:15 UTC |