Regexp::Copy allows you to copy the contents of one Regexp object to another.

A problem that I have found with the qr// operator is that the Regexp objects that
it creates are is impossible to dereference. This causes problems if you want to
change the data in the regexp without losing the reference to it.
Its impossible. Regexp::Copy allows you to change the Regexp by copying one object
created through qr// to another.

PR:		ports/118991
Submitted by:	az@
This commit is contained in:
Andrej Zverev
2007-12-25 08:57:51 +00:00
parent a903166d30
commit dc4bbbce24
5 changed files with 48 additions and 0 deletions
+1
View File
@@ -483,6 +483,7 @@
SUBDIR += p5-Regex-PreSuf
SUBDIR += p5-Regexp-Common
SUBDIR += p5-Regexp-Common-profanity_us
SUBDIR += p5-Regexp-Copy
SUBDIR += p5-Regexp-DefaultFlags
SUBDIR += p5-Regexp-Log
SUBDIR += p5-Regexp-Log-Common
+25
View File
@@ -0,0 +1,25 @@
# New ports collection makefile for: p5-Regexp-Copy
# Date created: 2007-12-24
# Whom: Andrej Zverev <andrey.zverev@electro-com.ru>
#
# $FreeBSD$
#
PORTNAME= Regexp-Copy
PORTVERSION= 0.06
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../by-authors/id/J/JD/JDUNCAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= A copy the contents of one Regexp object to another
BUILD_DEPENDS= p5-ExtUtils-MakeMaker>=6.11:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Regexp::Copy.3
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
MD5 (Regexp-Copy-0.06.tar.gz) = d0f3875e0655c0ac9eb37813ec82c137
SHA256 (Regexp-Copy-0.06.tar.gz) = 972beb7a88ebcdb76f33e64ee9e11dc3d550be22479067145546873bc8ea8825
SIZE (Regexp-Copy-0.06.tar.gz) = 3104
+9
View File
@@ -0,0 +1,9 @@
Regexp::Copy allows you to copy the contents of one Regexp object to another.
A problem that I have found with the qr// operator is that the Regexp objects
that it creates are is impossible to dereference.
This causes problems if you want to change the data in the regexp without
losing the reference to it. Its impossible.
Regexp::Copy allows you to change the Regexp by copying one object created
through qr// to another.
WWW: http://search.cpan.org/~jduncan/
+10
View File
@@ -0,0 +1,10 @@
@comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/Regexp/Storable.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Regexp/Copy.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/Copy.so
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/Copy.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/autosplit.ix
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Regexp