wfsp has asked for the wisdom of the Perl Monks concerning the following question:
Is anyone able to reproduce the following please?
Uncommenting the use Net::FTP line causes XP to crash ("Perl command line interpreter has encountered a problem..."). Even with the eval.
Further, removing the data starting "kosovar" and it doesn't.
Is there anything I'm missing here?
#!/bin/perl5 use strict; use warnings; use DBM::Deep; #use Net::FTP; my $words_all = { expletive => [1060], agong => [1542], measles => [qw(1459 415 1497)], proven => [qw(833 119 208)], sexta => [qw(517)], 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; } my $file = 'data/word.db'; unlink $file if -e $file; my $db = DBM::Deep->new(file => $file); eval{ $db->import(\%pack); }; die $@ if $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A Net::FTP and DBM::Deep clash
by puploki (Hermit) on Sep 26, 2005 at 12:16 UTC | |
|
Re: A Net::FTP and DBM::Deep clash
by talexb (Chancellor) on Sep 26, 2005 at 12:28 UTC | |
by wfsp (Abbot) on Sep 26, 2005 at 12:38 UTC | |
by BrowserUk (Patriarch) on Sep 26, 2005 at 13:39 UTC | |
by wfsp (Abbot) on Sep 26, 2005 at 13:56 UTC | |
by kenridge (Initiate) on Oct 13, 2005 at 05:28 UTC | |
by BrowserUk (Patriarch) on Oct 13, 2005 at 06:01 UTC | |
by wfsp (Abbot) on Oct 13, 2005 at 06:15 UTC | |
by BrowserUk (Patriarch) on Sep 26, 2005 at 13:31 UTC |