From: Mikhail Zabaluev <mhz@alt-linux.org>
To: devel@altlinux.ru
Cc: cray@iig.ru
Subject: [devel] Re: [Fwd: Рассказ об установке ALTLinux]
Date: Sat, 5 Jan 2002 01:55:00 +0300
Message-ID: <20020104225500.GB2044@localhost.localdomain> (raw)
In-Reply-To: <3C360933.3DEA49A@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
Hello Aleksey,
On Fri, Jan 04, 2002 at 10:57:39PM +0300, Aleksey Novodvorsky wrote:
>
> Просьба содержательные комментарии отправлять автору нижеследующейго
> письма, а не только сюда.
>
> Rgrds, Алексей
> Date: Fri, 4 Jan 2002 23:40:03 +0300
> From: Andrey Orlov <cray@iig.ru>
> To: aen@altlinux.ru
> Subject: Рассказ об установке ALTLinux
...
> =========
> Perl
> =========
> Perl, тоже падал.
>
> Мы используем объектные возможности Perl в конструкторе объекта открываем
> DBM (dbmopen) и сохраняем ссылку на хеш в атрибуте объекта. В деструкторе
> мы честно закрываем базу (dbmclose), в этот момент Perl падает. Если базу
> явно не закрывать, возникает вопрос о том, закроет ли Perl ее коректно, что
> очень важно для CGI скриптов.
>
> Пример скрипта:
>
> == cut ==
> #!/usr/bin/perl
> package Authen;
>
> sub new {
> my $proto = shift;
> my $class = ref($proto) || $proto;
> my $self = {};
> bless($self,$class);
> my %LT;
> dbmopen(%LT, "test_dbmopen", 0666) || die "Can't open test_dbm.db because of
> $!\n";
> $self->{'LT'} = \%LT;
> return $self;
> }
>
> sub DESTROY {
> my $self = shift;
> dbmclose(%{$self->{'LT'}});
> return 1;
> }
>
> package main;
>
> $test = Authen->new();
> == cut ==
>
> Мы пересобирали Perl с поддержкой разных DB (DB3, DB2, GDB), ошибка
> проявлялась везде..
confirmed, отправил perlbug, ждем-с...
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
"I've finally learned what `upward compatible' means. It means we
get to keep all our old mistakes."
-- Dennie van Tassel
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2002-01-04 22:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 19:57 [devel] " Aleksey Novodvorsky
2002-01-04 20:20 ` Alexander Bokovoy
2002-01-05 11:05 ` [devel] bash-completion Michael Shigorin
2002-01-05 13:06 ` Alexander Bokovoy
2002-01-05 15:06 ` Michael Shigorin
2002-01-05 15:40 ` Alexander Bokovoy
2002-01-04 22:55 ` Mikhail Zabaluev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020104225500.GB2044@localhost.localdomain \
--to=mhz@alt-linux.org \
--cc=cray@iig.ru \
--cc=devel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git