Clone-Closure
view release on metacpan or search on metacpan
pad_new|||
pad_peg|||n
pad_push|||
pad_reset|||
pad_setsv|||
pad_sv||5.011000|
pad_swipe|||
pad_tidy|||
pad_undef|||
parse_body|||
parse_unicode_opts|||
parser_dup|||
parser_free|||
path_is_absolute|||n
peep|||
pending_Slabs_to_ro|||
perl_alloc_using|||n
perl_alloc|||n
perl_clone_using|||n
perl_clone|||n
perl_construct|||n
#endif
#ifndef PERL_PV_PRETTY_DUMP
# define PERL_PV_PRETTY_DUMP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_QUOTE
#endif
#ifndef PERL_PV_PRETTY_REGPROP
# define PERL_PV_PRETTY_REGPROP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_LTGT|PERL_PV_ESCAPE_RE
#endif
/* Hint: pv_escape
* Note that unicode functionality is only backported to
* those perl versions that support it. For older perl
* versions, the implementation will fall back to bytes.
*/
#ifndef pv_escape
#if defined(NEED_pv_escape)
static char * DPPP_(my_pv_escape)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags);
static
#else
extern char * DPPP_(my_pv_escape)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags);
t/03scalar.t view on Meta::CPAN
# used to get a segfault cloning a ref to a qr data type.
my $str = 'abcdefg';
my $qr = qr/$str/;
my $qc = clone $qr;
BEGIN { $tests += 2 }
is $qr, $qc, 'qr clones';
like $str, $qc, 'cloned qr matches';
# test for unicode support
{
my $a = \( chr(256) );
my $b = clone $a;
BEGIN { $tests += 1 }
is ord($$a), ord($$b), 'ref to unicode clones';
}
BEGIN { plan tests => $tests }
#
# $Log: dclone.t,v $
# Revision 0.18 2006-10-08 03:37:29 ray
# Commented out VERSION causes errors with DynaLoader in perl 5.6.1 (and
# probably all earlier versions. It was removed.
#
# Revision 0.14 2003/09/07 22:02:36 ray
# VERSION 0.15
#
# Revision 0.13.2.1 2003/09/07 21:51:13 ray
# added support for unicode hash keys. This is only really a bug in 5.8.0 and
# the test in t/03scalar supports this.
#
# Revision 0.13 2002/06/12 06:41:55 ray
# VERSION 0.13
#
# Revision 0.11 2001/07/29 19:31:05 ray
# VERSION 0.11
#
# Revision 0.10.2.1 2001/07/28 21:47:49 ray
# commented out print statements.
#
# $Log: tied.pl,v $
# Revision 0.18 2006-10-08 03:37:29 ray
# Commented out VERSION causes errors with DynaLoader in perl 5.6.1 (and
# probably all earlier versions. It was removed.
#
# Revision 0.14 2003/09/07 22:02:36 ray
# VERSION 0.15
#
# Revision 0.13.2.1 2003/09/07 21:51:13 ray
# added support for unicode hash keys. This is only really a bug in 5.8.0 and
# the test in t/03scalar supports this.
#
# Revision 0.13 2002/06/12 06:41:55 ray
# VERSION 0.13
#
# Revision 0.11 2001/07/29 19:31:05 ray
# VERSION 0.11
#
# Revision 0.10 2001/04/29 21:56:10 ray
# VERSION 0.10
( run in 0.395 second using v1.01-cache-2.11-cpan-88abd93f124 )