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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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










25.10. Style


When it is necessary to have platform-specific code, consider keeping
it in one place to ease porting to other platforms. Use the Config
module and the special variable $^O to differentiate between platforms.

Be careful in the tests you supply with your module or programs.
A module''s code may be fully portable, but its tests may well not be.
This often happens when tests spawn other processes or call external
programs to aid in the testing, or when (as noted above) the tests
assume certain things about the filesystem and paths. Be careful not
to depend on a specific output style for errors, even when checking
$! for "standard" errors after a syscall. Use the Errno module instead.

Remember that good style transcends both time and culture, so for
maximum portability, you must seek to understand the universal amidst
the exigencies of your existence. The coolest people are not prisoners
of the latest cool fad; they don''t have to be, because they are not
worried about being "in" with respect to their own culture,
programmatically or otherwise. Fashion is a variable, but style is a
constant.






/ 875