Mastering Perl for Bioinformatics [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Mastering Perl for Bioinformatics [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید










1.5 Defining Modules


To
begin, take a file of subroutine definitions and call it something
like Newmodule.pm. Now, edit the file and give it
a new first line:

package Newmodule;

and a new last line 1;. You've
now created a Perl module.

To make a Celegans module, place subroutines in a
file called Celegans.pm, and add a first line:

package Celegans;

Add a last line 1;, and you've
defined a Celegans module. This last line just
ensures that the library returns a true value when
it's read in. It's annoying, but
necessary.


/ 156