ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Модули и библиотеки в Perl
Date: Thu, 6 Oct 2005 22:10:33 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0510062156560.30825-100000@dad.imath.kiev.ua> (raw)
In-Reply-To: <43414A70.9090808@rambler.ru>

On Mon, 3 Oct 2005, Yury Aliaev wrote:

> Добрый вечер!
> 
> У меня возник вопрос: я сейчас пилю один набор программ на Perl. Там 
> имеется некоторое количество общего кода, который логично вынести в 
> отдельный файл. Как известно, в Перле есть две возможности: организовать 
> библиотеку (с расширением .pl) и затем подключать с помощью require или 
> модуль (.pm) и подключать с помощью use. Является ли сейчас какой-нибудь 
> из этих способов предпочтительным или всё равно, что использовать? Если 
> делать модуль, то понятно, куда его складывать -- в 
> /usr/lib/Perl5/по_вкусу, а если библиотеку, то её куда класть?
> 
> Естественно, всё говорится при условии, что на машине стоит ALT Linux.
> 
> Заранее спасибо,
> Юрий.

.pm --- стандарт начиная с 5.000
Это не означает, что нельзя  писать по старинке, как в 4.х,
просто много лишнего придется делать руками, не используя готовых 
наработок.
Например, h2xs  делает готовую болванку.
-- 

Dr. Igor Vlasenko
--------------------
Topology Departament
Institute of Math
Kiev, Ukraine




  reply	other threads:[~2005-10-06 19:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 15:12 Yury Aliaev
2005-10-06 19:10 ` Igor Vlasenko [this message]
2005-10-07 11:50   ` Yury Aliaev
2005-10-07 12:06     ` Igor Vlasenko

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=Pine.LNX.4.44.0510062156560.30825-100000@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --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