|File Search||Catalog||Content Search|
These slurp/spew subs work for files, pipes and sockets, and stdio, pseudo-files, and DATA.
File::Slurp.pm version 0.04 =========================== This module provides subroutines to read or write entire files with a simple call. It also has a subroutine for reading the list of filenames in a directory. In the extras/ directory you can read an article (slurp_article.pod) about file slurping and also run a benchmark (slurp_bench.pl) that compares many ways of slurping/spewing files. more»
File::Slurp(3) User Contributed Perl Documentation File::Slurp(3) NAME File::Slurp - Efficient Reading/Writing of Complete Files SYNOPSIS use File::Slurp; my $text = read_file( 'filename' ) ; my @lines = read_file( 'filename' ) ; write_file( 'filename', @lines ) ; use File::Slurp qw( slurp ) ; my $text = slurp( 'filename' ) ; more»
Revision history for Perl extension File::FastSlurp. 9999.01 Mon Sep 1 00:20:56 2003 - original version; created by h2xs 1.21 with options -AX -n File::FastSlurp 9999.02 Wed Dec 17 03:40:49 EST 2003 - skip DATA test in handle.t on OSX (bug in perl with sysread on DATA) - changed checking if file handle from fileno to ref from Randal Schwartz <email@example.com> - added support for more»