Perl Cd Bookshelf [Electronic resources] نسخه متنی

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

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

Perl Cd Bookshelf [Electronic resources] - نسخه متنی

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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

B.10. Lists and Arrays



Perl has a number of
features that make it easy to manipulate an entire list or array.

B.10.1. map and grep


We mentioned (in Chapter 17, "Some Advanced Perl Techniques") the
map
and grep
list-processing operators. They can do more than we could include
here; see the perlfunc manpage for more
information and examples.

B.10.2. The splice Operator


With the splice
operator, you can add items to the middle
of an array, or remove them, letting the array grow or shrink as
needed. (Roughly, this is like what substr lets
you do with strings.) This effectively eliminates the need for linked
lists in Perl. See the
perlfunc manpage.

/ 875