ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey V. Novikov" <shader@yandex.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm] Модули и библиотеки в Perl
Date: Tue, 04 Oct 2005 08:46:39 +0400
Message-ID: <4342092F.3060307@yandex.ru> (raw)
In-Reply-To: <43414A70.9090808@rambler.ru>

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

Более предпочтительным является использование модулей
со времен где-то perl 5...
К тому же списком каталогов для поиска можно рулить с помощью
@INC.

-- 
WBR, Alexey V. Novikov



  reply	other threads:[~2005-10-04  4:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 15:12 Yury Aliaev
2005-10-04  4:46 ` Alexey V. Novikov [this message]
2005-10-04  8:09 ` Aleksander N. Gorohovski
2005-10-06  8:12   ` Yury Aliaev
2005-10-06  7:20     ` Aleksander N. Gorohovski
2005-10-06 10:30       ` Yury Aliaev

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=4342092F.3060307@yandex.ru \
    --to=shader@yandex.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git