winXP, activestate 5.8
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 $@;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.