Perl Best Practices (excerpt)---08

Source: Internet
Author: User
Eighth chapter: Built-in function 0 nine-Qi.

do not recalculate the sort key in sort. 0 Jiu Ba.

use reverse to reverse the list. 0 Jiu Jiu.

use scalar reverse to reverse the scalar. 00.

use unpack to remove fixed-width fields. one 0.

use Split to remove a simple variable-width field. 0.

use Text::csv_xs to remove complex variable-width fields. 0 three.

avoid using eval on strings. 0.

Consider creating your sort subroutine with Sort::maker. 0 Wu.

Use the substr of the four independent variables instead of the 1value substr. 0 land.

Use the 1value type of values properly. 0 Qi.

use Glob, do not use <...>. 0 ba.

avoid selecting non-integer sleep times with the original select. 0 JIU.

map and grep must use blocks. 0.

Use "built-in functions that are not built in".

Perl Best Practices (excerpt)---08

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.