diff options
Diffstat (limited to 'devel/p5-Slurp/pkg-descr')
-rw-r--r-- | devel/p5-Slurp/pkg-descr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/devel/p5-Slurp/pkg-descr b/devel/p5-Slurp/pkg-descr new file mode 100644 index 000000000000..690c6a056980 --- /dev/null +++ b/devel/p5-Slurp/pkg-descr @@ -0,0 +1,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. |