SlurpSlurp entire files into variables | |
Download |
Slurp Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Rob Casey
- Publisher web site:
- http://search.cpan.org/~robau/Tie-MLDBM-1.04/lib/Tie/MLDBM/Store/DBI.pm
Slurp Tags
Slurp Description
Slurp entire files into variables Slurp is a Perl module to slurp entire files into variables.SYNOPSIS use Slurp; my $file = slurp($file1, $file2, ...); my @array = Slurp::to_array($filename); my $scalar = Slurp::to_scalar($filename);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. Requirements: · Perl
Slurp Related Software