Useful Functions

Contents | Up | Prev | Next

# 9. Useful Functions

Perl has many functions that allow batch operations on entire arrays. Those functions are not only convenient, but are also faster than unrolling them into `for` and `foreach` loops.

This behaviour is sometimes referred to as the perl pipeline because it resembles the pipeline used by the UNIX shells.

- 9.1. split
- 9.2. map
- 9.3. sort
  - 9.3.1. <=> and cmp
- 9.4. grep

Contents | Up | Prev | Next