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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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

8.59. DirHandle


Provides
methods for accessing Perl''s directory functions,
avoiding namespace pollution. Creates anonymous glob to hold a
directory handle and closes the dirhandle automatically when the last
reference goes out of scope. The following methods are provided.


$dh = new DirHandle [dirname]

Constructor. Creates a new directory
handle. The optional directory name,
dirname, defaults to the current
directory.


$dh->close( )

Closes a directory handle; equivalent
to the closedir function.


$dh->open(dirname)

Opens directory
dirname; equivalent to the
opendir function.


$dh->read( )

Reads directory entries. Equivalent to
the readdir function. In scalar context, reads the
next directory entry; in list context, reads all entries.


$dh->rewind( )

Sets current position to beginning of
directory; equivalent to the rewinddir function.

/ 875