TAILIEUCHUNG - Minimal Perl For UNIX and Linux People 5

Các dấu ngoặc kép xung quanh đối số được xử lý đầu tiên, tạo thành một chuỗi từ không gian tách biệt các yếu tố danh sách, sau đó, bối cảnh danh sách được cung cấp theo chức năng được áp dụng cho kết quả là. Nhưng một chuỗi trích dẫn là một vô hướng, và danh sách các bối cảnh không ảnh hưởng đến vô hướng, vì vậy chuỗi hiện tại chưa sửa đổi như là tham số in của. Chức năng tham gia được liệt kê trong bảng cung cấp các dịch vụ tương tự như sự. | Table Popular built-in functions of AWK and Perl Type a NAWK GAWK Perl String gsub index match split sprintf sub substr tolower toupper asort gensub gsub index length match split strtonum sub substr tolower toupper chomp chop chr crypt hex index lc lcfirst length oct ord pack q STRING qq STRING reverse rindex sprintf substr tr uc ucfirst y Arithmetic cos exp int log sin sqrt srand cos exp int log sin sqr abs atan2 cos exp hex int log oct rand sin sqrt srand Input Output close getline print printf close getline print printf fflush binmode close closedir dbmclose dbmopen die eof fileno flock format getc print printf warn Miscella- neous system bindtextdomain compl dcgettext dcngettext extension lshift mktime rshift strftime system defined dump eval formline gmtime local localtime my our pos reset scalar system time undef wantarray a. The standard Perl installation provides hundreds of additional functions not listed here including ones that fall into these categories Unix system calls array handling file handling fixed-length record manipulation hash handling list processing module management network information retrieval pattern matching process control socket control user group information retrieval and variable scoping. However some of the apparent similarities between the languages mask significant differences. For example some AWK functions have namesakes that take different arguments in Perl and certain other functions such as AWK s sub and match correspond to operators represented by symbols in Perl rather than to named functions. To help AWKiologists migrate to Perlistan table shows the Perl counterparts to the most commonly used non-mathematical functions found in popular versions of AWK. Some general differences are that Perl functions are normally invoked without any parentheses around their arguments 33 and all occurrences of the 0 variable in the AWK examples must be converted to _ for Perl assuming use of the n or p option . Notice in .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.