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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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










3.21. C Operators Missing from Perl



Here is what C has that Perl doesn''t:



unary &



The address-of operator. Perl''s \ operator (for
taking a reference) fills the same ecological niche, however:


$ref_to_var = \$var;


But Perl references are much safer than C pointers.



unary *



The dereference-address operator. Since Perl doesn''t have addresses, it
doesn''t need to dereference addresses. It does have references though,
so Perl''s variable prefix characters serve as dereference operators, and
indicate type as well: $, @, %, and &. Oddly enough,
there actually is a * dereference operator, but since * is the
funny character indicating a typeglob, you wouldn''t use it the same way.



(TYPE)



The typecasting operator. Nobody likes to be typecast anyway.








/ 875