add Tie::File - Access the lines of a disk file via a Perl array.

This commit is contained in:
Yen-Ming Lee 2003-06-18 02:23:58 +00:00
parent a48d6c62b9
commit c573e82e63
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83203
5 changed files with 44 additions and 0 deletions

View file

@ -700,6 +700,7 @@
SUBDIR += p5-Test-Unit
SUBDIR += p5-Tie-Cache
SUBDIR += p5-Tie-DB_FileLock
SUBDIR += p5-Tie-File
SUBDIR += p5-Tie-IxHash
SUBDIR += p5-Time-Duration
SUBDIR += p5-Time-HiRes

View file

@ -0,0 +1,28 @@
# New ports collection makefile for: p5-Tie-File
# Date created: 17 June 2003
# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Tie-File
PORTVERSION= 0.96
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Tie
PKGNAMEPREFIX= p5-
MAINTAINER= leeym@FreeBSD.org
COMMENT= Access the lines of a disk file via a Perl array
PERL_CONFIGURE= yes
MAN3= Tie::File.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} > 500703
IGNORE= "This port is for perl 5.7.2 and under only."
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1 @@
MD5 (Tie-File-0.96.tar.gz) = 1d7184e02a560afbc7a9eafffc80f44c

View file

@ -0,0 +1,9 @@
Tie::File represents a regular text file as a Perl array. Each element in
the array corresponds to a record in the file. The first line of the file
is element 0 of the array; the second line is element 1, and so on.
The file is not loaded into memory, so this will work even for gigantic files.
Changes to the array are reflected in the file immediately.
WWW: http://search.cpan.org/dist/Tie-File/

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/Tie/File.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/File/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/File
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Tie 2>/dev/null || true