aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Slurp/pkg-descr
blob: 690c6a056980908648b64a3e12b9bc79d6aa03ba (plain) (blame)
1
2
3
4
5
6
7
8
This simple module serves one purpose - to provide a simple means to read (or
slurp) an entire file into memory for processing. This module allows the
replacement of the prototypical foreach- or while- loops used for opening
and reading of files with single-line constructs.

Of note with this module is that the magic of the @ARGV variable and the
input record separator, $/, are used to facilitate the reading of entire
files into either an array or scalar using minimal code.