perl the complete reference second edition phần 7

biến môi trường cá nhân hoặc không gian môi trường như một toàn thể. Các phương thức POST không có giới hạn như vậy. Bạn có thể chuyển càng nhiều thông tin như bạn muốn trong một yêu cầu POST mà không sợ bất kỳ cắt ngắn trên đường đi. Tuy nhiên, bạn không thể sử dụng một yêu cầu POST để xử lý một URL mở rộng. | 710 Perl The Complete Reference Option Description -Dx Sets debugging using a value of x. The value affects the output produced by the conversion process and adds a number of additional statements to the script to output debugging information during the script s progress. -Fc Specifies that the awk script was always invoked with a -F switch which changes the default input field separator to c. -nfields Specifies the names of the input fields rather than automatically using a value of Fld1 Fld2 and so on. Fields can be separated by any of the normal separation characters. -number Forces a2p to assume that the input is always made up of the number of fields specified by number. Table 20-11. Command Line Options to the awk Converter find The find command does not really have a language but it does have a complex array of command line options that can specify fairly expertly the definition of the files you want to find. The find2perl script takes the command line options you would normally supply to the find command and generates a Perl script that will perform the same function. The script produced actually makes use of the File Find module which provides a mechanism for parsing a directory tree following all the subdirectories. For each file or directory found a user-specified function is called with the name and location of the current file being available via the _ variable and via some variables located within the File Find module. The result is that Perl has the ability not only to locate a file within the current directory structure but also to do any number of other operations to convert translate summarize and so on the contents of the files found. The find2perl script does the basics of the file specification process for you producing a script that you can modify to your own ends. If you know how to use the find command then using the find2perl script should be easy. The command I find2perl -name bin -type d -print produces usr local bin perl Chapter 20 .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
42    154    2    24-05-2024
76    119    6    24-05-2024
Đã 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.