view release on metacpan or search on metacpan
lib/File/Gettext/Storage.pm view on Meta::CPAN
view all matches for this distribution
259260261262263264265266267268Two character language code
=item C<schema>
A weakened reference to the schema object
=item C<storage>
Instance of L<File::DataClass::Storage>
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
184185186187188189190191192193194195196197198199200201202
" return \$_[0]->{%s} = do { my \$self = \$_[0]; %s }\n"
.
" unless \$#_ > 0 or defined \$_[0]->{%s};\n"
,
weak_init
=>
" return do {\n"
.
" \$_[0]->{%s} = do { my \$self = \$_[0]; %s };\n"
.
" Scalar::Util::weaken(\$_[0]->{%s}) if ref \$_[0]->{%s};\n"
.
" \$_[0]->{%s};\n"
.
" } unless \$#_ > 0 or defined \$_[0]->{%s};\n"
,
return_if_get
=>
" return \$_[0]->{%s} unless \$#_ > 0;\n"
,
set
=>
" \$_[0]->{%s} = \$_[1];\n"
,
weaken
=>
" Scalar::Util::weaken(\$_[0]->{%s}) if ref \$_[0]->{%s};\n"
,
sub_end
=>
" return \$_[0]->{%s};\n}\n"
,
);
sub
field {
inc/Spiffy.pm view on Meta::CPAN
207208209210211212213214215216217
local
*paired_arguments
=
sub
{ (
qw(-package -init)
) };
Spiffy->parse_arguments(
@_
);
};
my
(
$field
,
$default
) =
@values
;
$package
=
$args
->{-
package
}
if
defined
$args
->{-
package
};
die
"Cannot have a default for a weakened field ($field)"
if
defined
$default
&&
$args
->{-weak};
return
if
defined
&{
"${package}::$field"
};
my
$default_string
=
(
ref
(
$default
) eq
'ARRAY'
and not
@$default
)
inc/Spiffy.pm view on Meta::CPAN
view all matches for this distribution
227228229230231232233234235236237}
$code
.=
sprintf
$code
{set_default},
$field
,
$default_string
,
$field
if
defined
$default
;
$code
.=
sprintf
$code
{return_if_get},
$field
;
$code
.=
sprintf
$code
{set},
$field
;
$code
.=
sprintf
$code
{weaken},
$field
,
$field
if
$args
->{-weak};
$code
.=
sprintf
$code
{sub_end},
$field
;
my
$sub
=
eval
$code
;
die
$@
if
$@;
view release on metacpan or search on metacpan
lib/File/Information/Deep.pm view on Meta::CPAN
lib/File/Information/Deep.pm view on Meta::CPAN
view all matches for this distribution
90919293949596979899my
(
$pkg
,
%opts
) =
@_
;
my
$self
=
$pkg
->SUPER::_new(
%opts
,
properties
=> \
%_properties
);
my
$pv
= (
$self
->{properties_values} //= {})->{current} //= {};
my
$parent
=
$self
->{parent};
weaken(
$self
->{parent});
# copy a few critical values:
$pv
->{contentise} = {
raw
=>
$parent
->get(
'contentise'
,
lifecycle
=>
'current'
,
as
=>
'uuid'
)};
$pv
->{mediatype} = {
raw
=>
$parent
->get(
'mediatype'
,
lifecycle
=>
'current'
,
as
=>
'mediatype'
)};
view release on metacpan or search on metacpan
view all matches for this distribution
946494659466946794689469947094719472947394749475SvROK_off|5.003007|5.003007|
SvROK_on|5.003007|5.003007|
SvRV|5.003007|5.003007|
SvRV_const|5.010001||Viu
SvRV_set|5.009003|5.003007|p
sv_rvunweaken|5.027004|5.027004|
sv_rvweaken|5.006000|5.006000|
SvRVx|5.003007||Viu
SvRX|5.009005|5.003007|p
SvRXOK|5.009005|5.003007|p
SV_SAVED_COPY|5.009005||Viu
SvSCREAM|5.003007||Viu
view release on metacpan or search on metacpan
lib/File/KDBX/Object.pm view on Meta::CPAN
910111213141516171819use
File::KDBX::Error;
use
namespace::clean;
our
$VERSION
=
'0.906'
;
# VERSION
fieldhashes \
my
(
%KDBX
,
%PARENT
,
%TXNS
,
%REFS
,
%SIGNALS
);
lib/File/KDBX/Object.pm view on Meta::CPAN
153154155156157158159160161162163my
$self
=
shift
;
$self
=
$self
->new
if
!
ref
$self
;
if
(
@_
) {
if
(
my
$kdbx
=
shift
) {
$KDBX
{
$self
} =
$kdbx
;
weaken
$KDBX
{
$self
};
}
else
{
delete
$KDBX
{
$self
};
}
}
lib/File/KDBX/Object.pm view on Meta::CPAN
view all matches for this distribution
193194195196197198199200201202203204205206207208209210211
delete
$PARENT
{
$self
};
}
# always get lineage from root to leaf because the other way requires parent, so it would be recursive
my
$lineage
=
$self
->kdbx->_trace_lineage(
$self
) or
return
;
my
$group
=
pop
@$lineage
or
return
;
$PARENT
{
$self
} =
$group
; weaken
$PARENT
{
$self
};
return
$group
;
}
sub
_set_group {
my
$self
=
shift
;
if
(
my
$parent
=
shift
) {
$PARENT
{
$self
} =
$parent
;
weaken
$PARENT
{
$self
};
}
else
{
delete
$PARENT
{
$self
};
}
return
$self
;
view release on metacpan or search on metacpan
lib/File/KeePass/KDBX.pm view on Meta::CPAN
11121314151617181920
lib/File/KeePass/KDBX.pm view on Meta::CPAN
view all matches for this distribution
492493494495496497498499500501502
return
$hit
if
defined
$hit
;
load
$class
;
tie
((
ref
$ref
eq
'ARRAY'
?
@$ref
:
%$ref
),
$class
,
$obj
,
@_
,
$self
);
$hit
=
$cache
->{
$key
} =
$ref
;
weaken
$cache
->{
$key
};
return
$hit
;
}
### convert datetime from KDBX to KeePass format
sub
_decode_datetime {
view release on metacpan or search on metacpan
view all matches for this distribution
848984908491849284938494849584968497849884998500SvROK_off|5.003007|5.003007|
SvROK_on|5.003007|5.003007|
SvRV|5.003007|5.003007|
SvRV_const|5.010001||Viu
SvRV_set|5.009003|5.003007|p
sv_rvunweaken|5.027004|5.027004|
sv_rvweaken|5.006000|5.006000|
SvRVx|5.003007||Viu
SvRX|5.009005|5.003007|p
SvRXOK|5.009005|5.003007|p
SV_SAVED_COPY|5.009005||Viu
SvSCREAM|5.003007||Viu
view release on metacpan or search on metacpan
xs/ppport.h view on Meta::CPAN
view all matches for this distribution
261926202621262226232624262526262627262826292630sv_ref||5.015004|
sv_replace|||
sv_report_used|||
sv_resetpvn|||
sv_reset|||
sv_rvunweaken|||
sv_rvweaken||5.006000|
sv_set_undef|||
sv_sethek|||
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
view release on metacpan or search on metacpan
devel/Shared.pm view on Meta::CPAN
4142434445464748495051
my
$key
=
"$dev,$ino"
;
return
(
$cache
{
$key
} ||=
do
{
my
$mmap
;
File::Map::map_handle (
$mmap
,
$fh
,
@args
);
my
$ref
=
$cache
{
$key
} = \
$mmap
;
Scalar::Util::weaken (
$cache
{
$key
});
$ref
;
});
}
devel/Shared.pm view on Meta::CPAN
view all matches for this distribution
74757677787980818283$h
{1} = 2;
$h
{1} =
undef
;
require
Scalar::Util;
$h
{1} = [];
Scalar::Util::weaken (
$h
{1});
"now $h{1}\n"
;
1;
__END__
view release on metacpan or search on metacpan
view all matches for this distribution
23456789101112
* MMagic.pm: Version 1.30.
2013-01-21 NOKUBI Takatsugu <knok
@daionet
.gr.jp>
* MMagic.pm (checktype_byfilename): Remove Scalar::Util::weaken.
To prevent too much decrement REFCNT.
2012-07-12 NOKUBI Takatsugu <knok
@daionet
.gr.jp>
* MMagic.pm (checktype_contents): Fix infinity loop bug.
view release on metacpan or search on metacpan
lib/File/ppport.h view on Meta::CPAN
view all matches for this distribution
946494659466946794689469947094719472947394749475SvROK_off|5.003007|5.003007|
SvROK_on|5.003007|5.003007|
SvRV|5.003007|5.003007|
SvRV_const|5.010001||Viu
SvRV_set|5.009003|5.003007|p
sv_rvunweaken|5.027004|5.027004|
sv_rvweaken|5.006000|5.006000|
SvRVx|5.003007||Viu
SvRX|5.009005|5.003007|p
SvRXOK|5.009005|5.003007|p
SV_SAVED_COPY|5.009005||Viu
SvSCREAM|5.003007||Viu
view release on metacpan or search on metacpan
lib/File/Marker.pm view on Meta::CPAN
lib/File/Marker.pm view on Meta::CPAN
2829303132333435363738sub
new {
my
$class
=
shift
;
my
$self
= IO::File->new();
bless
$self
,
$class
;
weaken(
$REGISTRY
{ refaddr
$self
} =
$self
);
$self
->
open
(
@_
)
if
@_
;
return
$self
;
}
#--------------------------------------------------------------------------#
lib/File/Marker.pm view on Meta::CPAN
view all matches for this distribution
167168169170171172173174175176177
# relocate data
$MARKS
{
$new_id
} =
$MARKS
{
$old_id
};
delete
$MARKS
{
$old_id
};
# update the weak reference to the new, cloned object
weaken(
$REGISTRY
{
$new_id
} =
$object
);
delete
$REGISTRY
{
$old_id
};
}
return
;
}
view release on metacpan or search on metacpan
lib/File/Replace/SingleHandle.pm view on Meta::CPAN
3456789101112
File::Replace::SingleHandle;
use
warnings;
use
strict;
use
Carp;
use
warnings::register;
# For AUTHOR, COPYRIGHT, AND LICENSE see the bottom of this file
our
$VERSION
=
'0.18'
;
lib/File/Replace/SingleHandle.pm view on Meta::CPAN
view all matches for this distribution
3435363738394041424344
$innerhandle
=
$repl
->out_fh; }
else
{ croak
"bad mode"
}
my
$self
=
$class
->SUPER::TIEHANDLE(
$innerhandle
);
$self
->{repl} =
$repl
;
$self
->{other} =
$other
;
weaken(
$self
->{other} );
return
$self
;
}
sub
replace {
return
shift
->{repl} }
sub
in_fh {
return
shift
->{repl}->in_fh }
view release on metacpan or search on metacpan
view all matches for this distribution
24152416241724182419242024212422242324242425sv_reftype|||
sv_release_COW|||
sv_replace|||
sv_report_used|||
sv_reset|||
sv_rvweaken||5.006000|
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
sv_setnv|||
sv_setpv_mg|5.004050||p
view release on metacpan or search on metacpan
script/rsybak view on Meta::CPAN
3328333284332853328633287332883328933290332913329233293#
#use 5.010;
#use strict;
#use warnings;
#
#use Scalar::Util qw(weaken);
#use Sub::Delete;
#
#my %stacks;
#
#sub __find_previous {
script/rsybak view on Meta::CPAN
view all matches for this distribution
3332933330333313333233333333343333533336333373333833339# $code = sub {};
# $args{code} = $code;
# push @$stack, [$type, $code];
# delete_sub $name;
# } elsif ($type eq 'wrap') {
# weaken($self);
# my $wrapper = sub {
# my $ctx = {
# package => $self->{package},
# subname => $self->{subname},
# extra => $self->{extra},
view release on metacpan or search on metacpan
Digest/Digest.pm view on Meta::CPAN
224225226227228229230231232233234it overflows
for
file sizes bigger than 512MB.
=back
The effects of these bugs are benign: the MD4 digest should not be
cryptographically weakened and both sides are consistent.
This module implements both versions of the MD4 digest: the
buggy version for protocol versions <= 26 and the correct
version for protocol versions >= 27. The default mode is
the buggy version (protocol versions <= 26).
Digest/Digest.pm view on Meta::CPAN
view all matches for this distribution
304305306307308309310311312313314315third argument is the
length
of the (partial)
last
block.
Alternatively, I hope to add a --checksum-seed=n option to rsync that allows
the checksum seed to be set to 0. This causes the checksum seed to be
omitted from the MD4 calculation and it makes caching the checksums much
easier. A zero checksum seed does not weaken the block digest.
I'm not sure whether or not it weakens the file digest (the checksum
seed is applied at the start of the file digest and end of the block
digest). In this case, the full 16 byte checksums should be computed
using:
$digests16
=
$rsDigest
->blockDigest(
$data
,
$blockSize
, 16, 0);
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
184185186187188189190191192193194195196197198199200201202
" return \$_[0]->{%s} = do { my \$self = \$_[0]; %s }\n"
.
" unless \$#_ > 0 or defined \$_[0]->{%s};\n"
,
weak_init
=>
" return do {\n"
.
" \$_[0]->{%s} = do { my \$self = \$_[0]; %s };\n"
.
" Scalar::Util::weaken(\$_[0]->{%s}) if ref \$_[0]->{%s};\n"
.
" \$_[0]->{%s};\n"
.
" } unless \$#_ > 0 or defined \$_[0]->{%s};\n"
,
return_if_get
=>
" return \$_[0]->{%s} unless \$#_ > 0;\n"
,
set
=>
" \$_[0]->{%s} = \$_[1];\n"
,
weaken
=>
" Scalar::Util::weaken(\$_[0]->{%s}) if ref \$_[0]->{%s};\n"
,
sub_end
=>
" return \$_[0]->{%s};\n}\n"
,
);
sub
field {
inc/Spiffy.pm view on Meta::CPAN
207208209210211212213214215216217
local
*paired_arguments
=
sub
{ (
qw(-package -init)
) };
Spiffy->parse_arguments(
@_
);
};
my
(
$field
,
$default
) =
@values
;
$package
=
$args
->{-
package
}
if
defined
$args
->{-
package
};
die
"Cannot have a default for a weakened field ($field)"
if
defined
$default
&&
$args
->{-weak};
return
if
defined
&{
"${package}::$field"
};
my
$default_string
=
(
ref
(
$default
) eq
'ARRAY'
and not
@$default
)
inc/Spiffy.pm view on Meta::CPAN
view all matches for this distribution
227228229230231232233234235236237}
$code
.=
sprintf
$code
{set_default},
$field
,
$default_string
,
$field
if
defined
$default
;
$code
.=
sprintf
$code
{return_if_get},
$field
;
$code
.=
sprintf
$code
{set},
$field
;
$code
.=
sprintf
$code
{weaken},
$field
,
$field
if
$args
->{-weak};
$code
.=
sprintf
$code
{sub_end},
$field
;
my
$sub
=
eval
$code
;
die
$@
if
$@;
view release on metacpan or search on metacpan
view all matches for this distribution
5152535455565758596061Changes:
* Accessors
"mtime"
,
"atime"
and
"ctime"
return
DateTime object.
* File is an argument
for
"stat"
and
"lstat"
static methods only.
* Attribute
"file"
is not weaken anymore.
* Constraints are moved to MooseX::Types::* packages.
* Requires Sub::Exporter, DateTime and newer Exception::* classes.
* Build requires Test::Assert.
------------------------------------------------------------------------
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
184185186187188189190191192193194195196197198199200201202
" return \$_[0]->{%s} = do { my \$self = \$_[0]; %s }\n"
.
" unless \$#_ > 0 or defined \$_[0]->{%s};\n"
,
weak_init
=>
" return do {\n"
.
" \$_[0]->{%s} = do { my \$self = \$_[0]; %s };\n"
.
" Scalar::Util::weaken(\$_[0]->{%s}) if ref \$_[0]->{%s};\n"
.
" \$_[0]->{%s};\n"
.
" } unless \$#_ > 0 or defined \$_[0]->{%s};\n"
,
return_if_get
=>
" return \$_[0]->{%s} unless \$#_ > 0;\n"
,
set
=>
" \$_[0]->{%s} = \$_[1];\n"
,
weaken
=>
" Scalar::Util::weaken(\$_[0]->{%s}) if ref \$_[0]->{%s};\n"
,
sub_end
=>
" return \$_[0]->{%s};\n}\n"
,
);
sub
field {
inc/Spiffy.pm view on Meta::CPAN
207208209210211212213214215216217
local
*paired_arguments
=
sub
{ (
qw(-package -init)
) };
Spiffy->parse_arguments(
@_
);
};
my
(
$field
,
$default
) =
@values
;
$package
=
$args
->{-
package
}
if
defined
$args
->{-
package
};
die
"Cannot have a default for a weakened field ($field)"
if
defined
$default
&&
$args
->{-weak};
return
if
defined
&{
"${package}::$field"
};
my
$default_string
=
(
ref
(
$default
) eq
'ARRAY'
and not
@$default
)
inc/Spiffy.pm view on Meta::CPAN
view all matches for this distribution
227228229230231232233234235236237}
$code
.=
sprintf
$code
{set_default},
$field
,
$default_string
,
$field
if
defined
$default
;
$code
.=
sprintf
$code
{return_if_get},
$field
;
$code
.=
sprintf
$code
{set},
$field
;
$code
.=
sprintf
$code
{weaken},
$field
,
$field
if
$args
->{-weak};
$code
.=
sprintf
$code
{sub_end},
$field
;
my
$sub
=
eval
$code
;
die
$@
if
$@;
view release on metacpan or search on metacpan
lib/File/Write/Rotate.pm view on Meta::CPAN
12131415161718192021# we must not use Log::Any, looping if we are used as log output
#use Log::Any '$log';
use
File::Spec;
#use Taint::Runtime qw(untaint is_tainted);
our
$Debug
;
lib/File/Write/Rotate.pm view on Meta::CPAN
view all matches for this distribution
152153154155156157158159160161162
return
$self
->{_weak_lock}
if
defined
(
$self
->{_weak_lock});
my
$lock
= File::Flock::Retry->
lock
(
$self
->lock_file_path);
$self
->{_weak_lock} =
$lock
;
weaken
$self
->{_weak_lock};
return
$lock
;
}
# will return \@files. each entry is [filename without compress suffix,
# rotate_suffix (for sorting), period (for sorting), compress suffix (for
view release on metacpan or search on metacpan
lib/File/ppport.h view on Meta::CPAN
view all matches for this distribution
22612262226322642265226622672268226922702271sv_reftype|||
sv_release_COW|||
sv_replace|||
sv_report_used|||
sv_reset|||
sv_rvweaken||5.006000|
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
sv_setnv|||
sv_setpv_mg|5.004050||p
view release on metacpan or search on metacpan
view all matches for this distribution
24152416241724182419242024212422242324242425sv_reftype|||
sv_release_COW|||
sv_replace|||
sv_report_used|||
sv_reset|||
sv_rvweaken||5.006000|
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
sv_setnv|||
sv_setpv_mg|5.004050||p
view release on metacpan or search on metacpan
lib/FileHandle/Unget.pm view on Meta::CPAN
234567891011
lib/FileHandle/Unget.pm view on Meta::CPAN
101102103104105106107108109110111
'fh'
=>
$self
,
'eof_called'
=> 0,
'filehandle_unget_buffer'
=>
''
,
};
weaken(
$values
->{
'fh'
});
tie
*$self
,
"${class}::Tie"
,
$values
;
bless
$self
,
$class
;
return
$self
;
lib/FileHandle/Unget.pm view on Meta::CPAN
view all matches for this distribution
134135136137138139140141142143144
'fh'
=>
$self
,
'eof_called'
=> 0,
'filehandle_unget_buffer'
=>
''
,
};
weaken(
$values
->{
'fh'
});
tie
*$self
,
"${class}::Tie"
,
$values
;
bless
$self
,
$class
;
return
$self
;
view release on metacpan or search on metacpan
lib/Filesys/DiskUsage/ppport.h view on Meta::CPAN
view all matches for this distribution
22612262226322642265226622672268226922702271sv_reftype|||
sv_release_COW|||
sv_replace|||
sv_report_used|||
sv_reset|||
sv_rvweaken||5.006000|
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
sv_setnv|||
sv_setpv_mg|5.004050||p
view release on metacpan or search on metacpan
easyxs/ppport.h view on Meta::CPAN
view all matches for this distribution
943694379438943994409441944294439444944594469447SvROK_off|5.003007|5.003007|
SvROK_on|5.003007|5.003007|
SvRV|5.003007|5.003007|
SvRV_const|5.010001||Viu
SvRV_set|5.009003|5.003007|p
sv_rvunweaken|5.027004|5.027004|
sv_rvweaken|5.006000|5.006000|
SvRVx|5.003007||Viu
SvRX|5.009005|5.003007|p
SvRXOK|5.009005|5.003007|p
SV_SAVED_COPY|5.009005||Viu
SvSCREAM|5.003007||Viu
view release on metacpan or search on metacpan
view all matches for this distribution
24152416241724182419242024212422242324242425sv_reftype|||
sv_release_COW|||
sv_replace|||
sv_report_used|||
sv_reset|||
sv_rvweaken||5.006000|
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
sv_setnv|||
sv_setpv_mg|5.004050||p
view release on metacpan or search on metacpan
lib/Filter/Syntactic.pm view on Meta::CPAN
view all matches for this distribution
228229230231232233234235236237238239
POSSIBLE_OUTER:
for
my
$prev
(
@Filter::Syntactic::captures
[
reverse
0..
$c
-1]) {
last
POSSIBLE_OUTER
if
$prev
->{END} <
$capture
->{POS};
if
(
$capture
->{END} >
$prev
->{END}) {
push
@{
$prev
->{OUTERS}},
$capture
;
weaken(
$prev
->{OUTERS}[-1]);
}
}
}
# Install replacement code and any adjust outer captures...
view release on metacpan or search on metacpan
t/MyTestHelpers.pm view on Meta::CPAN
view all matches for this distribution
114115116117118119120121122123124
}
else
{
MyTestHelpers::diag (
"Devel::FindRef not available -- "
, $@);
}
}
sub
test_weaken_show_leaks {
my
(
$leaks
) =
@_
;
$leaks
||
return
;
my
$unfreed
=
$leaks
->unfreed_proberefs;
my
$unfreed_count
=
scalar
(
@$unfreed
);
view release on metacpan or search on metacpan
Call/ppport.h view on Meta::CPAN
view all matches for this distribution
22402241224222432244224522462247224822492250sv_reftype|||
sv_release_COW|||
sv_replace|||
sv_report_used|||
sv_reset|||
sv_rvweaken||5.006000|
sv_setiv_mg|5.004050||p
sv_setiv|||
sv_setnv_mg|5.006000||p
sv_setnv|||
sv_setpv_mg|5.004050||p
view release on metacpan or search on metacpan
lib/HAL/Resource.pm view on Meta::CPAN
view all matches for this distribution
4142434445464748495051Hypertext Application Language - L<https://en.wikipedia.org/wiki/Hypertext_Application_Language>
=cut
has ua => (
weaken => 1,
is => 'ro',
);
has _links => (
is => 'ro',