view release on metacpan or search on metacpan
lib/DynGig/Range/Cluster/Client.pm view on Meta::CPAN
view all matches for this distribution
69707172737475767778=head2 update()
Returns I<true> if successful, I<false> otherwise.
=cut
sub
update
{
my
$this
=
shift
;
my
$param
=
$this
->{param};
my
$client
= DynGig::Multiplex::TCP->new(
$this
->{server} =>
$param
);
view release on metacpan or search on metacpan
lib/Dyns/Client.pm view on Meta::CPAN
view all matches for this distribution
5758596061626364656667
-ip
=>
'optional ip'
);
=cut
sub update {
my ($self, %args) = @_;
my $username = $args{-username}
|| do { carp "username mandatory"; return undef; };
my $password = $args{-password}
view release on metacpan or search on metacpan
ClientVersion.pm view on Meta::CPAN
1819202122232425262728our
@ISA
=
qw(E2::Ticker)
;
our
$DEBUG
;
*DEBUG
=
*E2::Interface::DEBUG
;
sub
new;
sub
update;
sub
clients;
sub
new {
my
$arg
=
shift
;
ClientVersion.pm view on Meta::CPAN
view all matches for this distribution
3839404142434445464748sub
clients {
my
$self
=
shift
or croak
"Usage: clients E2CLIENTVERSION"
;
return
$self
->{clients};
}
sub
update {
my
$self
=
shift
or croak
"Usage: update E2CLIENTVERSION"
;
warn
"E2::ClientVersion::Update\n"
if
$DEBUG
> 1;
my
$handlers
= {
view release on metacpan or search on metacpan
lib/EAI/DB.pm view on Meta::CPAN
view all matches for this distribution
462463464465466467468469470471472
return
1;
}
}
# update data in database
sub
updateInDB ($$) {
my
(
$DB
,
$data
) =
@_
;
my
$logger
= get_logger();
my
$tableName
=
$DB
->{tablename};
my
@keycolumns
= @{
$DB
->{keyfields}}
if
$DB
->{keyfields};
eval
{
view release on metacpan or search on metacpan
lib/EBook/Gutenberg.pm view on Meta::CPAN
view all matches for this distribution
293294295296297298299300301302
return
1;
}
sub
update {
my
$self
=
shift
;
my
$catalog
= EBook::Gutenberg::Catalog->new(
$self
->{ Catalog });
view release on metacpan or search on metacpan
script/ecs_scan_mail view on Meta::CPAN
view all matches for this distribution
11561157115811591160116111621163116411651166
update_statistics(\
@nodelist
,
$nodes
);
}
# ----------------------------------------------------------------------
# Inspect "store" folder and compute message statistics
sub
update_statistics
{
my
$nodelist
=
shift
;
my
$nodes
=
shift
;
# get sorted list of files in directory
view release on metacpan or search on metacpan
lib/ETLp/Audit/Browser/Controller/Schedule.pm view on Meta::CPAN
190191192193194195196197198199200
$self
->conf->param(
'root_url'
) .
'/schedule/edit/'
.
$schedule_id
);
}
# Process ajax call to update the section list drop down if the config item
# changes
sub
update_sections {
my
$self
=
shift
;
my
$config_file
=
$self
->query->param(
'config_file'
);
my
$show_blank
=
$self
->query->param(
'show_blank'
) || 0;
return
$self
->model->get_section_options(
lib/ETLp/Audit/Browser/Controller/Schedule.pm view on Meta::CPAN
view all matches for this distribution
247248249250251252253254255256257
return
$self
->redirect(
$self
->conf->param(
'root_url'
) .
'/schedule/'
);
}
# This runmode is used to return the chain of pipelines dependent on the one
# provided
sub
update_dependencies {
my
$self
=
shift
;
my
$config_file
=
$self
->query->param(
'config'
);
my
$section
=
$self
->query->param(
'section'
);
if
(
$section
=~ /^
$config_file
\-(.*)$/) {
view release on metacpan or search on metacpan
EasyDBAccess.pm view on Meta::CPAN
view all matches for this distribution
739740741742743744745746747748
my
$ra_param
= build_array(
$filter
,
$rh_data
,
$ra
);
return
$self
->execute(
$sql
,
$ra_param
);
}
sub
update {
my
$self
=
shift
;
my
(
$sql
,
$filter
,
$rh_data
,
$ra_param
) =
@_
;
my
(
$item_str
,
$item_bind_param
,
$flag
,
$item_str2
) = build_update(
$filter
,
$rh_data
);
view release on metacpan or search on metacpan
lib/Echo/StreamServer/Users.pm view on Meta::CPAN
view all matches for this distribution
4445464748495051525354
}
}
return
$json_hash_ref
;
}
sub
update {
my
(
$self
,
$identity_url
,
$subject
,
$content
) =
@_
;
unless
(
grep
(m/^
$subject
$/,
@USER_SUBJECTS
)) {
die
(
"Users API must update a valid subject ("
.
join
(
', '
,
@USER_SUBJECTS
) .
"), not '$subject'"
);
}
view release on metacpan or search on metacpan
lib/Echo360.pm view on Meta::CPAN
view all matches for this distribution
105106107108109110111112113114115
}
return
XML::Simple->new()->XMLin(
$resp
->content)
}
sub
update {
my
(
$self
,
$uri
,
$xml
) =
@_
;
$uri
=
"/$uri"
unless
$uri
=~/^\//;
"PUT URI: $uri\n"
if
$self
->{DEBUG};
view release on metacpan or search on metacpan
lib/EEDB/Chrom.pm view on Meta::CPAN
view all matches for this distribution
421422423424425426427428429430431
Returntype :
$self
Exceptions : none
=cut
sub update {
my $self = shift;
return undef unless($self->database and $self->id);
my $dbh = $self->database->get_connection;
view release on metacpan or search on metacpan
lib/Egg/Model/Session/Base/DBI.pm view on Meta::CPAN
view all matches for this distribution
7677787980818283848586
my
$self
=
shift
;
my
$data
=
shift
|| croak
q{I want session data.}
;
my
$id
=
shift
||
$self
->session_id || croak
q{I want session id.}
;
$self
->_do(
$self
->_insert,
$id
,
$$data
,
localtime
(
time
)->mysql_datetime);
}
sub
update {
my
$self
=
shift
;
my
$data
=
shift
|| croak
q{I want session data.}
;
my
$id
=
shift
||
$self
->session_id || croak
q{I want session id.}
;
$self
->_do(
$self
->_update,
$$data
,
localtime
(
time
)->mysql_datetime,
$id
);
}
view release on metacpan or search on metacpan
lib/Egg/Mod/EasyDBI.pm view on Meta::CPAN
view all matches for this distribution
218219220221222223224225226227228229230231232233234235236237238
$self
->{es}->debug(
$sql
);
$self
->{es}->dbh->
do
(
$sql
,
undef
,
values
%$a
)
> 0 ? 1: 0;
}
*in
= \
&insert
;
sub
update {
my
$self
=
shift
;
my
$a
=
$argc
->_update(
@_
);
my
$sql
=
qq{UPDATE $self->{dbname}
SET }
.
join
(
', '
,
keys
%{
$a
->{up}}).
qq{ WHERE $a->{st}
};
$self
->{es}->debug(
$sql
);
$self
->{es}->dbh->
do
(
$sql
,
undef
, (
values
%{
$a
->{up}}), @{
$a
->{ex}})
> 0 ? 1: 0;
}
*up
= \
&update
;
sub
update_insert {
my
$self
=
shift
;
return
"0E0"
if
$self
->update(
@_
);
if
(
my
$error
=
$self
->{es}->dbh->errstr) {
die
$error
}
$self
->insert(
@_
);
}
view release on metacpan or search on metacpan
lib/Eixo/Queue/MongoDriver.pm view on Meta::CPAN
view all matches for this distribution
3233343536373839404142
%{
$job
->to_hash}
});
}
sub
updateJob{
my
(
$self
,
$job
,
$collection
) =
@_
;
$self
->getCollection(
$collection
)->update(
{
_id
=>
$job
->id} ,
view release on metacpan or search on metacpan
examples/ekahau-events-example.pl view on Meta::CPAN
59606162636465666768697071727374757677787980818283848586878889
{
$ek
->dispatch;
}
}
sub
update_devices
{
my
(
$resp
)=
@_
;
foreach
my
$dev
(
grep
{ !
$macaddr
{
$_
} }
keys
%{
$resp
->{params}})
{
my
$prop
=
$ek
->request_device_properties(
$dev
)
or
die
"Couldn't get properties for '$dev'\n"
;
}
}
sub
update_device_properties
{
my
(
$prop
)=
@_
;
my
$dev
=
$prop
->{args}[0];
$macaddr
{
$dev
}=
$prop
->{params}{
'NETWORK.MAC'
};
$ek
->start_location_track(
$dev
);
$ek
->start_area_track({
'EPE.NUMBER_OF_AREAS'
=>
$num_guesses
},
$dev
);
}
sub
update_areas
{
my
(
$loc
)=
@_
;
my
$dev
=
$loc
->{args}[0];
my
$floor
=
$floor
{
$loc
->{params}{contextId}};
examples/ekahau-events-example.pl view on Meta::CPAN
view all matches for this distribution
141142143144145146147148149150151152153154155156157158159160
}
}
"ISEE Ekahau.$macaddr{$dev} FROM $where$coord$relcoord AT "
,
time
,
" CONFIDENCE "
,
$loc
->{params}{probability},
"$ormaybe\n"
;
}
sub
update_locations
{
my
(
$loc
)=
@_
;
my
$dev
=
$loc
->{args}[0];
$lastloc
{
$dev
}{x} =
$loc
->{params}{latestX};
$lastloc
{
$dev
}{y} =
$loc
->{params}{latestY};
}
sub
update_contexts
{
my
(
$ctx
)=
@_
;
my
$ctx_id
=
$ctx
->{args}[0];
$floor
{
$ctx_id
}=
$ctx
->{params}{address};
view release on metacpan or search on metacpan
lib/Elastic/Model/Role/Index.pm view on Meta::CPAN
61626364656667686970717273747576777879808182
$self
->model->store->
$action
(
%args
,
index
=>
$self
->name );
return
$self
;
}
#===================================
sub
update_settings {
#===================================
my
$self
=
shift
;
$self
->model->store->update_index_settings(
index
=>
$self
->name,
settings
=> {
@_
}
);
return
$self
;
}
#===================================
sub
update_analyzers {
#===================================
my
$self
=
shift
;
my
$params
=
$self
->index_config(
@_
);
delete
$params
->{mappings};
$self
->model->store->update_index_settings(
%$params
);
lib/Elastic/Model/Role/Index.pm view on Meta::CPAN
view all matches for this distribution
100101102103104105106107108109110
my
$indices
=
$self
->model->store->get_aliases(
index
=>
$name
);
return
!!
$indices
->{
$name
};
}
#===================================
sub
update_mapping {
#===================================
my
$self
=
shift
;
my
%args
=
ref
$_
[-1] eq
'HASH'
? %{
pop
() } : ();
my
$mappings
=
$self
->mappings(
@_
);
my
$store
=
$self
->model->store;
view release on metacpan or search on metacpan
lib/ElasticSearchX/Model/Bulk.pm view on Meta::CPAN
view all matches for this distribution
3132333435363738394041
my
(
$self
,
$action
,
$payload
) = (
shift
, %{
$_
[0] } );
$payload
->{source} =
delete
$payload
->{body};
$self
->stash->add_action(
$action
=>
$payload
);
}
sub
update {
my
(
$self
,
$doc
,
$qs
) =
@_
;
$self
->add(
{
index
=>
ref
$doc
eq
'HASH'
?
$doc
view release on metacpan or search on metacpan
lib/Elive/DAO.pm view on Meta::CPAN
view all matches for this distribution
1250125112521253125412551256125712581259This method can be called from the class level. You will need to
supply the primary key and all mandatory fields.
=cut
sub update {
my ($self, $_update_data, %opt) = @_;
die "attempted to update deleted record"
if ($self->_deleted);
view release on metacpan or search on metacpan
t/02-base_me.t view on Meta::CPAN
view all matches for this distribution
4748495051525354555657
});
};
done_testing();
sub
update_options {
my
$args
=
shift
;
my
$fields
= Eliza::Chatbot->new(
$args
->{options});
my
$att
=
$args
->{att};
# check its value
is(
$fields
->
$att
,
$args
->{value},
"$att set with correct value"
);
view release on metacpan or search on metacpan
lib/Email/ExactTarget/SubscriberOperations.pm view on Meta::CPAN
132133134135136137138139140141142
\
@subscribers
);
=cut
sub update_or_create
{
my ( $self, $subscribers ) = @_;
return $self->_update_create(
'subscribers' => $subscribers,
lib/Email/ExactTarget/SubscriberOperations.pm view on Meta::CPAN
view all matches for this distribution
173174175176177178179180181182183
\
@subscribers
);
=cut
sub update
{
my ( $self, $subscribers ) = @_;
return $self->_update_create(
'subscribers' => $subscribers,
view release on metacpan or search on metacpan
lib/Email/LocalDelivery/Maildir.pm view on Meta::CPAN
view all matches for this distribution
3839404142434445464748
return
if
->header(
"Lines"
);
my
@lines
=
split
/\n/,
->body;
->header_set(
"Lines"
,
scalar
@lines
);
}
sub
update_time {
if
(
$maildir_time
!=
time
) {
$maildir_time
=
time
;
$maildir_counter
= 0;
}
else
{
$maildir_counter
++;
view release on metacpan or search on metacpan
DB/FileSystem.pm view on Meta::CPAN
view all matches for this distribution
2627282930313233343536sub
cloneDistro {
}
#_______________________________________
sub
updateDistro {
}
#_______________________________________
sub
getComponentList {
view release on metacpan or search on metacpan
eg/web/db/epwebapp.pl view on Meta::CPAN
531532533534535536537538539540541
return
$self
-> redir_to_show (
$r
) ;
}
# ----------------------------------------------------------------------------
sub
update_item
{
my
$self
=
shift
;
my
$r
=
shift
;
die
"No category"
if
(!
defined
(
$r
->{category_set}{edit_level})) ;
eg/web/db/epwebapp.pl view on Meta::CPAN
view all matches for this distribution
10741075107610771078107910801081108210831084
}
# ----------------------------------------------------------------------------
sub
update_user
{
my
$self
=
shift
;
my
$r
=
shift
;
if
(
$self
-> checkuser_light(
$r
) < 1)
view release on metacpan or search on metacpan
lib/Enterasys/NetSight.pm view on Meta::CPAN
view all matches for this distribution
259260261262263264265266267268269270271272273274275276277278279280281
my
@params
=
qw(name snmpVersion read write maxAccess auth)
;
return
_call(
$self
,
'addProfileEx'
, \
@params
,
$args
);
}
# Methods for updating
sub
updateAuth
{
my
(
$self
,
$args
)=
@_
;
my
@params
=
qw(username description loginPassword enablePassword configurationPassword type)
;
return
_call(
$self
,
'updateAuthCredentialEx'
, \
@params
,
$args
);
}
sub
updateSnmp
{
my
(
$self
,
$args
)=
@_
;
my
@params
=
qw(name communityName userName authPassword authType privPassword privType)
;
return
_call(
$self
,
'updateCredentialEx'
, \
@params
,
$args
);
}
sub
updateProfile
{
my
(
$self
,
$args
)=
@_
;
my
@params
=
qw(name read write maxAccess authCredName)
;
return
_call(
$self
,
'updateProfileEx'
, \
@params
,
$args
);
}
view release on metacpan or search on metacpan
lib/EntityModel/Web/Apache2/UploadHandler.pm view on Meta::CPAN
view all matches for this distribution
8283848586878889909192=head2 C<updateStatus>
=cut
sub
updateStatus {
my
(
$class
,
$f
,
$bucket
,
$mode
,
$block
,
$bytesRead
) =
@_
;
logError(
"Have %d bytes"
,
$bytesRead
);
unless
(
$f
->ctx) {
logError(
"New request, pid %d, URI %s"
, $$,
$f
->r->uri);
view release on metacpan or search on metacpan
lib/EntityModel/Web/Request.pm view on Meta::CPAN
view all matches for this distribution
99100101102103104105106107108109
return
$self
;
}
return
$self
->{uri};
}
sub
update_uri_from {
my
(
$self
,
$uri
) =
@_
;
$self
->{uri} =
$uri
;
$self
->hostname(
$uri
->host);
$self
->path(
$uri
->path);
$self
->get->set(
$_
,
$uri
->query_param(
$_
))
for
sort
$uri
->query_param;
view release on metacpan or search on metacpan
lib/EntityModel/DB.pm view on Meta::CPAN
view all matches for this distribution
160161162163164165166167168169170Update information
=cut
sub update {
my $self = shift;
my %args = @_;
$self->_fork_guard;
my $sql = $args{sql};
view release on metacpan or search on metacpan
lib/Etcd/Keys.pm view on Meta::CPAN
view all matches for this distribution
51525354555657585960
my
(
$self
,
$key
,
$value
,
%args
) =
@_
;
croak
'usage: $etcd->create($key, $value, [%args])'
if
grep
{ !
defined
} (
$key
,
$value
);
$self
->set(
$key
,
$value
,
%args
,
prevExist
=>
'false'
);
}
sub
update {
my
(
$self
,
$key
,
$value
,
%args
) =
@_
;
croak
'usage: $etcd->update($key, $value, [%args])'
if
grep
{ !
defined
} (
$key
,
$value
);
$self
->set(
$key
,
$value
,
%args
,
prevExist
=>
'true'
);
}
view release on metacpan or search on metacpan
lib/Etsy/StatsD.pm view on Meta::CPAN
view all matches for this distribution
165166167168169170171172173174175Update one of more stats counters by arbitrary amounts.
=cut
sub update {
my ( $self, $stats, $delta, $sample_rate ) = @_;
$delta = 1 unless defined $delta;
my %data;
if ( ref($stats) eq 'ARRAY' ) {
%data = map { $_ => "$delta|c" } @$stats;
view release on metacpan or search on metacpan
lib/Evo/EA/Agent.pm view on Meta::CPAN
view all matches for this distribution
891011121314151617181920212223
$class
=
ref
(
$class
) ||
$class
;
bless
$self
,
$class
;
}
sub
update_with_agent {
my
(
$self
,
$agent
) =
@_
;
$agent
->update_once(
$self
);
}
sub
update_once {
my
(
$self
,
$agent
) =
@_
;
$agent
->interprete;
}